overleaf/develop/webpack.config.dev-env.js
Alf Eaton 773319d550 Merge pull request #9725 from overleaf/ae-overleaf-develop-ce
Add Server CE development environment

GitOrigin-RevId: c91d9eb58b1dbc3be24646e77033cd3242e707f0
2022-10-12 08:03:27 +00:00

23 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',
},
],
},
})