diff --git a/package.json b/package.json index 9df8ada..b99be24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "todolist", - "version": "0.2.0", + "version": "0.2.1", "private": true, "description": "", "main": "app.js", diff --git a/react/config/webpack.config.prod.js b/react/config/webpack.config.prod.js index 479a68c..21ce3c3 100644 --- a/react/config/webpack.config.prod.js +++ b/react/config/webpack.config.prod.js @@ -314,7 +314,7 @@ module.exports = { navigateFallback: `${publicUrl}/index.html`, // Ignores URLs starting from /__ (useful for Firebase): // https://github.com/facebookincubator/create-react-app/issues/2237#issuecomment-302693219 - navigateFallbackWhitelist: [/^(?!\/__).*/, /\/api\//], + navigateFallbackWhitelist: [/^(?!\/api\/.*)/], // Don't precache sourcemaps (they're large) and build asset manifest: staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/], @@ -322,7 +322,7 @@ module.exports = { // so we should disable it in order for Google OAuth to work. runtimeCaching: [ { - urlPattern: /\/api\//, + urlPattern: /^\/api\//, handler: 'networkOnly', }, ],