fix(deploy): include serwist runtime in container
This commit is contained in:
@@ -17,6 +17,16 @@ const nextConfig: NextConfig = {
|
||||
// 关闭静态优化以规避 16.2.7 global-error prerender bug
|
||||
staticGenerationRetryCount: 0,
|
||||
},
|
||||
outputFileTracingIncludes: {
|
||||
"/serwist/*": [
|
||||
"./src/app/sw.ts",
|
||||
"./node_modules/.pnpm/@serwist+*/node_modules/@serwist/**/*",
|
||||
"./node_modules/.pnpm/idb@*/node_modules/idb/**/*",
|
||||
"./node_modules/.pnpm/serwist@*/node_modules/serwist/**/*",
|
||||
"./node_modules/.pnpm/esbuild@*/node_modules/esbuild/**/*",
|
||||
"./node_modules/.pnpm/@esbuild+linux-*@*/node_modules/@esbuild/linux-*/**/*",
|
||||
],
|
||||
},
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user