perf: build in stages to reduce container size

This commit is contained in:
AprilNEA
2023-03-27 13:49:26 +08:00
parent 8d0d08725d
commit 2645540721
2 changed files with 39 additions and 5 deletions

View File

@@ -14,4 +14,8 @@ const nextConfig = {
}
};
if (process.env.DOCKER) {
nextConfig.output = 'standalone'
}
module.exports = nextConfig;