feat: configure workspace environment runtimes

This commit is contained in:
2026-07-20 09:22:26 +05:30
parent 3888453e0d
commit b3e5e5b999
58 changed files with 183 additions and 103 deletions
+9 -1
View File
@@ -70,6 +70,7 @@ export interface GatewayOptions {
hostname?: string;
mode?: "development" | "production";
environment?: string;
hmr?: boolean;
apps: GatewayApp[];
security?: GatewaySecurity;
}
@@ -348,7 +349,14 @@ export async function startGateway(opts: GatewayOptions): Promise<RunningGateway
})
: spawn(
process.execPath,
[serveEntry, join(dir, "app"), String(appPort), mode, "127.0.0.1"],
[
serveEntry,
join(dir, "app"),
String(appPort),
mode,
"127.0.0.1",
String(opts.hmr ?? true),
],
{
stdio: "inherit",
env: {