From 26aebd7e92c72d9ca9b907353682f4bdf537314d Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Mon, 9 Jul 2018 19:07:15 +0300 Subject: [PATCH] now login with google should actually work --- package.json | 2 +- react/config/webpack.config.prod.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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', }, ],