feat: add reusable public chrome and named environments
This commit is contained in:
@@ -412,7 +412,12 @@ export async function runGateway(root: string, args: string[]): Promise<void> {
|
||||
await startGateway({
|
||||
port,
|
||||
hostname,
|
||||
mode: environment === "production" ? "production" : "development",
|
||||
mode:
|
||||
environment === "production" ||
|
||||
args.includes("--prod") ||
|
||||
process.env.NODE_ENV === "production"
|
||||
? "production"
|
||||
: "development",
|
||||
environment,
|
||||
security: resolved.security,
|
||||
apps: resolved.apps.map((app) => ({
|
||||
@@ -506,6 +511,7 @@ export async function runProduction(root: string, args: string[]): Promise<void>
|
||||
if (!gatewayArgs.some((arg) => arg.startsWith("--environment="))) {
|
||||
gatewayArgs.push(`--environment=${environment}`);
|
||||
}
|
||||
if (!gatewayArgs.includes("--prod")) gatewayArgs.push("--prod");
|
||||
if (!gatewayArgs.some((arg) => arg.startsWith("--host="))) gatewayArgs.push("--host=0.0.0.0");
|
||||
if (!gatewayArgs.some((arg) => arg.startsWith("--port="))) gatewayArgs.push("--port=3000");
|
||||
await runGateway(workspaceRoot, gatewayArgs);
|
||||
|
||||
Reference in New Issue
Block a user