feat: 优化dockerfile,可使包体积从1.1G缩小至200M

This commit is contained in:
yangsong13
2024-11-21 17:35:43 +08:00
parent 762c9e9440
commit 2e18ed2e0e
2 changed files with 23 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ const nextConfig = {
eslint: {
ignoreDuringBuilds: true
},
output: process.env.EXPORT ? 'export' : undefined,
output: process.env.EXPORT ? 'export' : 'standalone',
staticPageGenerationTimeout: 120,
// 多语言, 在export时禁用
i18n: process.env.EXPORT