Allow paths with dots

This commit is contained in:
Ilya Lyamkin
2020-09-08 15:43:37 +02:00
committed by GitHub
parent 1b9673799f
commit ec87e8b53d
+5 -1
View File
@@ -42,7 +42,11 @@ export async function serveBundle(options: ServeOptions) {
contentBase: paths.targetPublic,
contentBasePublicPath: config.output?.publicPath,
publicPath: config.output?.publicPath,
historyApiFallback: true,
historyApiFallback: {
// Paths with dots should still use the history fallback.
// See https://github.com/facebookincubator/create-react-app/issues/387.
disableDotRule: true,
},
clientLogLevel: 'warning',
stats: 'errors-warnings',
https: url.protocol === 'https:',