upgrade next offline to v5 (#986)

main
Michael Fix 5 years ago committed by GitHub
parent fb5edb7cd9
commit e7066acc16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,20 +9,6 @@ const config = withOffline({
// https://github.com/hanford/next-offline/blob/master/packages/now2-example/next.config.js // https://github.com/hanford/next-offline/blob/master/packages/now2-example/next.config.js
workboxOpts: { workboxOpts: {
swDest: 'static/service-worker.js', swDest: 'static/service-worker.js',
globDirectory: '.',
globPatterns: ['static/**/*'],
runtimeCaching: [
{
urlPattern: /^https?.*/,
handler: 'NetworkFirst',
options: {
cacheName: 'offlineCache',
expiration: {
maxEntries: 200,
},
},
},
],
}, },
env: { env: {
FIREBASE_PROJECT_ID: process.env.FIREBASE_PROJECT_ID, FIREBASE_PROJECT_ID: process.env.FIREBASE_PROJECT_ID,

@ -45,7 +45,7 @@
"morphmorph": "^0.1.3", "morphmorph": "^0.1.3",
"ms": "^2.1.2", "ms": "^2.1.2",
"next": "^9.3.4", "next": "^9.3.4",
"next-offline": "^4.0.6", "next-offline": "^5.0.0",
"prettier": "^2.0.3", "prettier": "^2.0.3",
"react": "^16.13.1", "react": "^16.13.1",
"react-click-outside": "^3.0.0", "react-click-outside": "^3.0.0",

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save