Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 4134b69

Browse files
authored
Merge pull request #3388 from withspectrum/2.4.12
2.4.12
2 parents 495bc6a + 3ae62f7 commit 4134b69

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

config-overrides.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,20 @@ module.exports = function override(config, env) {
108108
caches: process.env.NODE_ENV === 'development' ? {} : 'all',
109109
externals,
110110
autoUpdate: true,
111+
cacheMaps: [
112+
{
113+
match: function(url) {
114+
var EXTERNAL_PATHS = ['/api', '/auth'];
115+
if (
116+
EXTERNAL_PATHS.some(function(path) {
117+
return url.pathname.indexOf(path) === 0;
118+
})
119+
)
120+
return false;
121+
return url;
122+
},
123+
},
124+
],
111125
rewrites: arg => arg,
112126
ServiceWorker: {
113127
entry: './public/push-sw.js',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Spectrum",
3-
"version": "2.4.11",
3+
"version": "2.4.12",
44
"license": "BSD-3-Clause",
55
"devDependencies": {
66
"babel-cli": "^6.24.1",

0 commit comments

Comments
 (0)