Skip to content

Instantly share code, notes, and snippets.

@akinogu
Created December 6, 2021 03:43
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/3b32d40305c9d13c89c0b3375685f422 to your computer and use it in GitHub Desktop.
Save akinogu/3b32d40305c9d13c89c0b3375685f422 to your computer and use it in GitHub Desktop.
/** @type {import('next').NextConfig} */
const withPWA = require('next-pwa')
const runtimeCaching = require('next-pwa/cache')
module.exports = withPWA({
pwa: {
dest: 'public',
runtimeCaching,
// 現状この設定を追加しないとエラーになってしまうので追加
// 参考: https://github.com/shadowwalker/next-pwa/issues/288
buildExcludes: [/middleware-manifest.json$/]
},
reactStrictMode: true,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment