Last active
December 6, 2021 03:51
-
-
Save akinogu/34632170f94754968a50fd878c35c8f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @type {import('next').NextConfig} */ | |
const withPWA = require('next-pwa') | |
module.exports = withPWA({ | |
pwa: { | |
dest: 'public', | |
buildExcludes: [/middleware-manifest.json$/], | |
// 配列内にcache.jsの定義のようにObjectで書いていけばOK | |
// 参考: https://developers.google.com/web/tools/workbox/reference-docs/latest/module-workbox-build#.RuntimeCachingEntry | |
runtimeCaching: [...] | |
}, | |
reactStrictMode: true, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment