We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f05465e commit 901636bCopy full SHA for 901636b
packages/react-scripts/config/webpack.config.js
@@ -623,9 +623,11 @@ module.exports = function(webpackEnv) {
623
navigateFallbackBlacklist: [
624
// Exclude URLs starting with /_, as they're likely an API call
625
new RegExp('^/_'),
626
- // Exclude URLs containing a dot, as they're likely a resource in
627
- // public/ and not a SPA route
628
- new RegExp('/[^/]+\\.[^/]+$'),
+ // Exclude any URLs whose last part seems to be a file extension
+ // as they're likely a resource and not a SPA route.
+ // URLs containing a "?" character won't be blacklisted as they're likely
629
+ // a route with query params (e.g. auth callbacks).
630
+ new RegExp('/[^/?]+\\.[^/]+$'),
631
],
632
}),
633
// TypeScript type checking
0 commit comments