Commit d55b4640 authored by Sarbast Mohammed's avatar Sarbast Mohammed Committed by Luis Alvarez D

fix with-next-offline example (#9900)

parent ad7bb4e3
...@@ -5,6 +5,18 @@ module.exports = withOffline({ ...@@ -5,6 +5,18 @@ module.exports = withOffline({
swDest: process.env.NEXT_EXPORT swDest: process.env.NEXT_EXPORT
? 'service-worker.js' ? 'service-worker.js'
: 'static/service-worker.js', : 'static/service-worker.js',
runtimeCaching: [
{
urlPattern: /^https?.*/,
handler: 'NetworkFirst',
options: {
cacheName: 'offlineCache',
expiration: {
maxEntries: 200,
},
},
},
],
}, },
experimental: { experimental: {
async rewrites() { async rewrites() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment