@base44-preview/cli 0.1.6-pr.580.6f69633 → 0.1.6-pr.580.7b51e7b
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
|
@@ -247293,9 +247293,7 @@ async function deploySite(siteOutputDir) {
|
|
|
247293
247293
|
if (!await pathExists(siteOutputDir)) {
|
|
247294
247294
|
throw new InvalidInputError(`Output directory does not exist: ${siteOutputDir}. Make sure to build your project first.`, {
|
|
247295
247295
|
hints: [
|
|
247296
|
-
{
|
|
247297
|
-
message: "Run 'base44 build' first (it injects your app id; a bare 'npm run build' does not)"
|
|
247298
|
-
}
|
|
247296
|
+
{ message: "Run 'base44 build' first (it injects your app id; a bare 'npm run build' does not)" }
|
|
247299
247297
|
]
|
|
247300
247298
|
});
|
|
247301
247299
|
}
|
|
@@ -247303,9 +247301,7 @@ async function deploySite(siteOutputDir) {
|
|
|
247303
247301
|
if (filePaths.length === 0) {
|
|
247304
247302
|
throw new ConfigInvalidError(`No files found in output directory: ${siteOutputDir}. Make sure to build your project first.`, siteOutputDir, {
|
|
247305
247303
|
hints: [
|
|
247306
|
-
{
|
|
247307
|
-
message: "Run 'base44 build' first (it injects your app id; a bare 'npm run build' does not)"
|
|
247308
|
-
}
|
|
247304
|
+
{ message: "Run 'base44 build' first (it injects your app id; a bare 'npm run build' does not)" }
|
|
247309
247305
|
]
|
|
247310
247306
|
});
|
|
247311
247307
|
}
|
|
@@ -261986,7 +261982,6 @@ function startRemoteServe(options8) {
|
|
|
261986
261982
|
}
|
|
261987
261983
|
function createRemoteServeRunner({
|
|
261988
261984
|
appId,
|
|
261989
|
-
appBaseUrl,
|
|
261990
261985
|
serveCommand,
|
|
261991
261986
|
projectRoot
|
|
261992
261987
|
}) {
|
|
@@ -261998,7 +261993,7 @@ function createRemoteServeRunner({
|
|
|
261998
261993
|
cwd: projectRoot,
|
|
261999
261994
|
env: {
|
|
262000
261995
|
VITE_BASE44_APP_ID: appId,
|
|
262001
|
-
VITE_BASE44_APP_BASE_URL:
|
|
261996
|
+
VITE_BASE44_APP_BASE_URL: BASE44_APP_URL
|
|
262002
261997
|
},
|
|
262003
261998
|
logger: createDevLogger("frontend", theme.colors.base44Orange)
|
|
262004
261999
|
});
|
|
@@ -262023,18 +262018,15 @@ function validateDevOptions(command2) {
|
|
|
262023
262018
|
command2.error("--port applies to the local backend, which --remote does not start.");
|
|
262024
262019
|
}
|
|
262025
262020
|
}
|
|
262026
|
-
var remoteBackendUrl = () => getSiteUrl().catch(() => BASE44_APP_URL);
|
|
262027
262021
|
async function remoteDevAction(app) {
|
|
262028
262022
|
const { project: project2 } = await readProjectConfig(app.projectRoot);
|
|
262029
|
-
const appBaseUrl = await remoteBackendUrl();
|
|
262030
262023
|
startRemoteServe({
|
|
262031
262024
|
appId: app.id,
|
|
262032
|
-
appBaseUrl,
|
|
262033
262025
|
serveCommand: project2.site?.serveCommand,
|
|
262034
262026
|
projectRoot: project2.root
|
|
262035
262027
|
});
|
|
262036
262028
|
return {
|
|
262037
|
-
outroMessage: `Frontend dev server targets ${theme.styles.bold(
|
|
262029
|
+
outroMessage: `Frontend dev server targets ${theme.styles.bold("production")} — every write hits your live app`
|
|
262038
262030
|
};
|
|
262039
262031
|
}
|
|
262040
262032
|
async function devAction(ctx, options8) {
|
|
@@ -266582,4 +266574,4 @@ export {
|
|
|
266582
266574
|
CLIExitError
|
|
266583
266575
|
};
|
|
266584
266576
|
|
|
266585
|
-
//# debugId=
|
|
266577
|
+
//# debugId=1E3B2EDB55B9278A64756E2164756E21
|