Skip to content

Commit 74b9dc4

Browse files
authored
sw-precache: add comment for no fallback /api
1 parent e069e35 commit 74b9dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/react-scripts/config/webpack.config.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ module.exports = {
338338
minify: true,
339339
// For unknown URLs, fallback to the index page
340340
navigateFallback: publicUrl + '/index.html',
341-
// Ignores URLs starting from /__ (useful for Firebase):
341+
// Ignores URLs starting from /api or /__ (useful for Firebase):
342342
// https://github.com/facebookincubator/create-react-app/issues/2237#issuecomment-302693219
343343
navigateFallbackWhitelist: [/^(?!\/(__|api)).*/],
344344
// Don't precache sourcemaps (they're large) and build asset manifest:

0 commit comments

Comments
 (0)