@base44-preview/cli 0.1.16-pr.635.901076f → 0.1.16-pr.635.f70a612
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 +5 -5
- package/dist/cli/index.js.map +5 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -249598,7 +249598,7 @@ async function buildAction(ctx) {
|
|
|
249598
249598
|
};
|
|
249599
249599
|
}
|
|
249600
249600
|
function getBuildCommand() {
|
|
249601
|
-
return new Base44Command("build"
|
|
249601
|
+
return new Base44Command("build").description("Build the site with the Base44 app id injected").action(buildAction);
|
|
249602
249602
|
}
|
|
249603
249603
|
|
|
249604
249604
|
// src/cli/commands/project/create.ts
|
|
@@ -251256,7 +251256,7 @@ function createServeCommandRunner({
|
|
|
251256
251256
|
cwd: projectRoot,
|
|
251257
251257
|
env: {
|
|
251258
251258
|
VITE_BASE44_APP_ID: appId,
|
|
251259
|
-
|
|
251259
|
+
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:
|
|
251307
|
+
outroMessage: `Frontend dev server running '${command}' against ${theme.styles.bold(options.backendUrl)}`
|
|
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)").requiredOption("--backend-url <url>", "Backend the frontend should call, injected as VITE_BASE44_APP_BASE_URL").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=4448173CB414506864756E2164756E21
|