@base44-preview/cli 0.1.17-pr.635.345b6e2 → 0.1.17-pr.635.d9ecd72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -230722,9 +230722,7 @@ var SiteConfigSchema = object({
230722
230722
  serveCommand: string2().optional(),
230723
230723
  outputDirectory: string2().optional(),
230724
230724
  installCommand: string2().default("npm install"),
230725
- devHostFlag: string2().default("--host"),
230726
- devHost: string2().default("0.0.0.0"),
230727
- devPort: number2().int().min(1).max(65535).default(5173)
230725
+ devHostFlag: string2().default("--host")
230728
230726
  });
230729
230727
  var PluginMetadataSchema = object({
230730
230728
  namespace: string2().min(1, "Plugin namespace cannot be empty").regex(/^[a-zA-Z0-9_-]+$/, "Plugin namespace can only contain letters, numbers, underscores, and dashes")
@@ -251319,6 +251317,8 @@ function stopRunnerOnProcessSignals(runner) {
251319
251317
  }
251320
251318
 
251321
251319
  // src/cli/commands/site/dev.ts
251320
+ var DEFAULT_DEV_HOST = "0.0.0.0";
251321
+ var DEFAULT_DEV_PORT = 5173;
251322
251322
  function parsePort(value) {
251323
251323
  if (!/^\d+$/.test(value)) {
251324
251324
  throw new InvalidArgumentError2("must be a whole number");
@@ -251341,8 +251341,8 @@ async function siteDevAction(ctx, options) {
251341
251341
  }
251342
251342
  const serveCommand = site.serveCommand ?? DEFAULT_SERVE_COMMAND;
251343
251343
  const { command, droppedAddress } = withServeAddress(serveCommand, {
251344
- host: options.host ?? site.devHost,
251345
- port: options.port ?? site.devPort,
251344
+ host: options.host ?? DEFAULT_DEV_HOST,
251345
+ port: options.port ?? DEFAULT_DEV_PORT,
251346
251346
  hostFlag: site.devHostFlag
251347
251347
  });
251348
251348
  if (droppedAddress) {
@@ -251362,7 +251362,7 @@ async function siteDevAction(ctx, options) {
251362
251362
  };
251363
251363
  }
251364
251364
  function getSiteDevCommand() {
251365
- return new Base44Command("dev", { requireAuth: false }).description("Run the site's dev server against a given backend (no local backend)").option("--backend-url <url>", "Backend the frontend should call, injected as VITE_BASE44_APP_BASE_URL. Omit for a frontend that reaches its backend same-origin.").option("--host <address>", "Address to bind, overriding site.devHost").option("--port <number>", "Port to bind, overriding site.devPort", parsePort).action(siteDevAction);
251365
+ return new Base44Command("dev", { requireAuth: false }).description("Run the site's dev server against a given backend (no local backend)").option("--backend-url <url>", "Backend the frontend should call, injected as VITE_BASE44_APP_BASE_URL. Omit for a frontend that reaches its backend same-origin.").option("--host <address>", "Address to bind (default: 0.0.0.0)").option("--port <number>", "Port to bind (default: 5173)", parsePort).action(siteDevAction);
251366
251366
  }
251367
251367
 
251368
251368
  // src/cli/commands/site/open.ts
@@ -260080,4 +260080,4 @@ export {
260080
260080
  runCLI
260081
260081
  };
260082
260082
 
260083
- //# debugId=E803849EB8B019CA64756E2164756E21
260083
+ //# debugId=E4900ACB9D3C9A4264756E2164756E21