feat: remove nextjs production runtime (#1389)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user