Skip to content

Instantly share code, notes, and snippets.

@akinogu
Last active December 6, 2021 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akinogu/34632170f94754968a50fd878c35c8f5 to your computer and use it in GitHub Desktop.
Save akinogu/34632170f94754968a50fd878c35c8f5 to your computer and use it in GitHub Desktop.
/** @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