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 f2255d9 commit 410f4ddCopy full SHA for 410f4dd
build-static.js
@@ -15,9 +15,9 @@ try {
15
console.log("✅ Temporarily moved API routes");
16
}
17
18
- // Run the build
+ // Run the Next.js build directly (not npm run build to avoid infinite loop)
19
console.log("🔨 Running Next.js build...");
20
- execSync("npm run build", { stdio: "inherit" });
+ execSync("npx next build", { stdio: "inherit" });
21
22
// Move API directory back
23
if (fs.existsSync(tempApiDir)) {
0 commit comments