feat: remove nextjs production runtime (#1389)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import path from "node:path";
|
||||
import fs from "node:fs";
|
||||
|
||||
import { resolveWebServerPath } from "./bundle";
|
||||
import { getBinaryName, getPlatformDir, type PlatformDir } from "./platform";
|
||||
|
||||
const PLATFORM_TO_NPM_PACKAGE: Record<PlatformDir, string> = {
|
||||
@@ -76,8 +75,4 @@ export function validateBundle(bundleDir: string): void {
|
||||
if (!fs.existsSync(agentctlBin)) {
|
||||
throw new Error(`agentctl binary not found in bundle at ${bundleDir}`);
|
||||
}
|
||||
const webServerPath = resolveWebServerPath(bundleDir);
|
||||
if (!webServerPath) {
|
||||
throw new Error(`Web server (server.js) not found in bundle at ${bundleDir}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user