Browse Source

fix(admin): maybe help with firefox+service workers? Re: #3097

pull/3182/head
Gabe Kangas 3 years ago
parent
commit
670eae10db
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 8
      web/next.config.js

8
web/next.config.js

@ -13,6 +13,14 @@ const withPWA = require('next-pwa')({ @@ -13,6 +13,14 @@ const withPWA = require('next-pwa')({
urlPattern: /\.(?:ts|m3u8)$/i,
handler: 'NetworkOnly',
},
{
urlPattern: /^\/admin\/.*$/,
handler: 'NetworkOnly',
},
{
urlPattern: /^\/api\/.*$/,
handler: 'NetworkOnly',
},
],
register: true,
skipWaiting: true,

Loading…
Cancel
Save