feat: 仅对NEXT_BUILD_STANDALONE=true生效

This commit is contained in:
yangsong13
2024-11-21 20:06:58 +08:00
parent 2e18ed2e0e
commit f10dfb8172
3 changed files with 7 additions and 2 deletions

View File

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