mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 21:14:40 -05:00
24 lines
458 B
JavaScript
24 lines
458 B
JavaScript
|
const { merge } = require('webpack-merge')
|
||
|
|
||
|
const base = require('./webpack.config.dev')
|
||
|
|
||
|
module.exports = merge(base, {
|
||
|
devServer: {
|
||
|
allowedHosts: 'auto',
|
||
|
devMiddleware: {
|
||
|
index: false,
|
||
|
},
|
||
|
proxy: [
|
||
|
{
|
||
|
context: '/socket.io/**',
|
||
|
target: 'http://real-time:3026',
|
||
|
ws: true,
|
||
|
},
|
||
|
{
|
||
|
context: ['!**/*.js', '!**/*.css', '!**/*.json'],
|
||
|
target: 'http://web:3000',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
})
|