···434434 },
435435 port: 19006,
436436 hot: true,
437437- historyApiFallback: true,
437437+ historyApiFallback: {
438438+ // Handles like `xan.lol` contain dots, which the default history
439439+ // fallback treats as asset requests instead of app routes.
440440+ disableDotRule: true,
441441+ },
438442 compress: true,
439443 },
440444
+7
webpack.config.js
···3939 ]
4040 if (env.mode === 'development') {
4141 config.plugins.push(new ReactRefreshWebpackPlugin())
4242+ config.devServer = config.devServer || {}
4343+ config.devServer.historyApiFallback = {
4444+ ...(config.devServer.historyApiFallback || {}),
4545+ // Handles like `xan.lol` contain dots, which the default history
4646+ // fallback treats as asset requests instead of app routes.
4747+ disableDotRule: true,
4848+ }
4249 // Reap zombie HMR WebSocket connections that linger after refresh.
4350 // Without this, dead sockets exhaust the browser's per-origin connection
4451 // pool and the dev server stops responding.