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

This commit is contained in:
Gabe Kangas 2023-07-16 16:22:35 -07:00
parent ca2bc96348
commit 670eae10db
No known key found for this signature in database
GPG key ID: 4345B2060657F330

View file

@ -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,