-
-
Save akinogu/3b32d40305c9d13c89c0b3375685f422 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') | |
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