1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-21 23:44:22 +00:00

Patch webpack to support codespaces

This commit is contained in:
Steffo 2023-03-15 11:12:06 +00:00 committed by GitHub
parent 44dac475cb
commit ad2505165e
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,17 @@ const moduleExports = {
experimental: { experimental: {
appDir: true, appDir: true,
}, },
webpack: (config) => ({
...config,
devServer: {
...config.devServer,
client: {
...config.client,
webSocketURL: "auto://0.0.0.0:0/ws"
},
allowedHosts: process.env.CODESPACES ? [".preview.app.github.dev"] : config.devServer.allowedHosts
}
})
}; };
const sentryWebpackPluginOptions = { const sentryWebpackPluginOptions = {