We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 042dfd9 commit 0d57c11Copy full SHA for 0d57c11
.changeset/soft-queens-sing.md
@@ -0,0 +1,5 @@
1
+---
2
+"@opennextjs/aws": patch
3
4
+
5
+Clean output directory before `next build`
packages/open-next/src/build.ts
@@ -53,11 +53,11 @@ export async function build(
53
// Build Next.js app
54
printHeader("Building Next.js app");
55
setStandaloneBuildMode(options);
56
+ buildHelper.initOutputDir(options);
57
buildNextjsApp(options);
58
59
// Generate deployable bundle
60
printHeader("Generating bundle");
- buildHelper.initOutputDir(options);
61
62
// Compile cache.ts
63
compileCache(options);
0 commit comments