@base44-preview/cli 0.1.16-pr.635.6b1b04b → 0.1.16-pr.635.901076f
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 +4 -4
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -251256,7 +251256,7 @@ function createServeCommandRunner({
|
|
|
251256
251256
|
cwd: projectRoot,
|
|
251257
251257
|
env: {
|
|
251258
251258
|
VITE_BASE44_APP_ID: appId,
|
|
251259
|
-
VITE_BASE44_APP_BASE_URL: appBaseUrl
|
|
251259
|
+
...appBaseUrl ? { VITE_BASE44_APP_BASE_URL: appBaseUrl } : {}
|
|
251260
251260
|
},
|
|
251261
251261
|
logger: createDevLogger("frontend", theme.colors.base44Orange)
|
|
251262
251262
|
});
|
|
@@ -251304,11 +251304,11 @@ async function siteDevAction(ctx, options) {
|
|
|
251304
251304
|
runner.onExit((code) => process.exit(code ?? 1));
|
|
251305
251305
|
runner.start();
|
|
251306
251306
|
return {
|
|
251307
|
-
outroMessage: `Frontend dev server running '${command}' against ${theme.styles.bold(options.backendUrl)}`
|
|
251307
|
+
outroMessage: options.backendUrl ? `Frontend dev server running '${command}' against ${theme.styles.bold(options.backendUrl)}` : `Frontend dev server running '${command}'`
|
|
251308
251308
|
};
|
|
251309
251309
|
}
|
|
251310
251310
|
function getSiteDevCommand() {
|
|
251311
|
-
return new Base44Command("dev", { requireAuth: false }).description("Run the site's dev server against a given backend (no local backend)").
|
|
251311
|
+
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, e.g. 0.0.0.0").option("--port <number>", "Port to bind").action(siteDevAction);
|
|
251312
251312
|
}
|
|
251313
251313
|
|
|
251314
251314
|
// src/cli/commands/site/open.ts
|
|
@@ -260021,4 +260021,4 @@ export {
|
|
|
260021
260021
|
runCLI
|
|
260022
260022
|
};
|
|
260023
260023
|
|
|
260024
|
-
//# debugId=
|
|
260024
|
+
//# debugId=1B4036764E7405DA64756E2164756E21
|