mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	- Add rewriting 'X-REAL-IP' header for each request through dev proxy server. - Change webpack configuration ip to 0.0.0.0 to fix socket.io build for launching remote dev server.
		
			
				
	
	
		
			21 lines
		
	
	
		
			466 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			466 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
module.exports = {
 | 
						|
    entry: [
 | 
						|
        'webpack-dev-server/client?http://0.0.0.0:9991/socket.io',
 | 
						|
        './static/js/src/main.js',
 | 
						|
    ],
 | 
						|
    devtool: 'eval',
 | 
						|
    output: {
 | 
						|
        publicPath: 'http://0.0.0.0:9991/webpack/',
 | 
						|
        path: './static/js',
 | 
						|
        filename: 'bundle.js',
 | 
						|
    },
 | 
						|
    devServer: {
 | 
						|
        port: 9994,
 | 
						|
        stats: "errors-only",
 | 
						|
        watchOptions: {
 | 
						|
            aggregateTimeout: 300,
 | 
						|
            poll: 1000,
 | 
						|
        },
 | 
						|
    },
 | 
						|
};
 |