Disable webpack error overlay(s) (#16906)

GitOrigin-RevId: da3ed899bef4f452491f4da94a25078bb458234e
This commit is contained in:
Alf Eaton 2024-02-05 11:44:33 +00:00 committed by Copybot
parent c613f8964b
commit 33bc09cf09

View file

@ -62,6 +62,7 @@ module.exports = merge(base, {
/node_modules/, // default
/source-editor/, // avoid crashing the source editor
],
overlay: false,
}),
// Disable React DevTools if DISABLE_REACT_DEVTOOLS is set to "true"
@ -77,6 +78,7 @@ module.exports = merge(base, {
port: parseInt(process.env.PORT, 10) || 3808,
client: {
webSocketURL: 'auto://0.0.0.0:0/ws',
overlay: process.env.DISABLE_WEBPACK_OVERLAY !== 'true',
},
hot: true,
allowedHosts: '.dev-overleaf.com',