feat: remove nextjs production runtime (#1389)

This commit is contained in:
Carlos Florêncio
2026-06-18 18:36:48 +01:00
committed by GitHub
parent 2781556ead
commit aee1846cd5
368 changed files with 10228 additions and 3306 deletions
-18
View File
@@ -22,21 +22,3 @@ export function findBundleRoot(cacheDir: string): string {
}
return cacheDir;
}
export function resolveWebServerPath(bundleDir: string): string | null {
// Next.js standalone output location depends on workspace structure:
// - non-monorepo: web/server.js
// - monorepo (apps/ root): web/web/server.js
// - monorepo (project root): web/apps/web/server.js
const candidates = [
path.join(bundleDir, "web", "server.js"),
path.join(bundleDir, "web", "web", "server.js"),
path.join(bundleDir, "web", "apps", "web", "server.js"),
];
for (const candidate of candidates) {
if (fs.existsSync(candidate)) {
return candidate;
}
}
return null;
}