diff --git a/next.config.js b/next.config.js index e078c5f..3f882c5 100644 --- a/next.config.js +++ b/next.config.js @@ -15,6 +15,17 @@ const moduleExports = { experimental: { 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 = {