feat: configure workspace environment runtimes
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user