feat: add expert combo configuration mode (#1547)

This commit is contained in:
Randi
2026-04-24 08:04:10 -04:00
committed by GitHub
parent a972293151
commit 4f6f97b369
17 changed files with 951 additions and 303 deletions

View File

@@ -72,7 +72,7 @@ export async function movePath(sourcePath, destinationPath, fsImpl = fs) {
function runNextBuild() {
return new Promise((resolve) => {
const nextBin = path.join(projectRoot, "node_modules", "next", "dist", "bin", "next");
const child = spawn(process.execPath, [nextBin, "build"], {
const child = spawn(process.execPath, [nextBin, "build", resolveNextBuildBundlerFlag()], {
cwd: projectRoot,
stdio: "inherit",
env: resolveNextBuildEnv(process.env),
@@ -97,6 +97,10 @@ function runNextBuild() {
});
}
export function resolveNextBuildBundlerFlag(baseEnv = process.env) {
return baseEnv.OMNIROUTE_USE_TURBOPACK === "1" ? "--turbopack" : "--webpack";
}
export function resolveNextBuildEnv(baseEnv = process.env) {
return {
...baseEnv,