Skip to content

Commit dd640ef

Browse files
hrmtcroot
authored andcommitted
Fix service worker precache failure (#446)
Co-authored-by: root <[email protected]>
1 parent 772a9ce commit dd640ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

next.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ const nextConfigFunction = async (phase) => {
3737
const withPWA = (await import('@ducanh2912/next-pwa')).default({
3838
dest: 'public',
3939
disable: 'development' === process.env.NODE_ENV,
40+
// @ts-expect-error buildExcludes is supported at runtime even if missing in types
41+
buildExcludes: [/_next\/dynamic-css-manifest\.json$/],
4042
});
4143
return withPWA(nextConfig);
4244
}

0 commit comments

Comments
 (0)