@base44-preview/cli 0.0.55-pr.545.7ed3721 → 0.0.55-pr.545.81d207d
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 -15
- package/dist/cli/index.js.map +5 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -255501,13 +255501,12 @@ class ServeRunner {
|
|
|
255501
255501
|
if (this.child) {
|
|
255502
255502
|
return;
|
|
255503
255503
|
}
|
|
255504
|
-
const stdin2 = process21.platform === "win32" ? "ignore" : "inherit";
|
|
255505
255504
|
const child = spawn3(this.command, {
|
|
255506
255505
|
cwd: this.cwd,
|
|
255507
255506
|
shell: true,
|
|
255508
255507
|
detached: process21.platform !== "win32",
|
|
255509
255508
|
env: { ...process21.env, ...this.env },
|
|
255510
|
-
stdio: [
|
|
255509
|
+
stdio: ["inherit", "pipe", "pipe"]
|
|
255511
255510
|
});
|
|
255512
255511
|
this.child = child;
|
|
255513
255512
|
this.setupHandlers(child);
|
|
@@ -257271,7 +257270,7 @@ async function createDevServer(options8) {
|
|
|
257271
257270
|
port: process.env.IS_TEST === "true" ? undefined : DEFAULT_PORT
|
|
257272
257271
|
});
|
|
257273
257272
|
const baseUrl = `http://localhost:${port}`;
|
|
257274
|
-
const { functions, entities, project: project2
|
|
257273
|
+
const { functions, entities, project: project2 } = await options8.loadResources();
|
|
257275
257274
|
const app = import_express6.default();
|
|
257276
257275
|
const remoteProxy = import_http_proxy_middleware2.createProxyMiddleware({
|
|
257277
257276
|
target: BASE44_APP_URL,
|
|
@@ -257331,12 +257330,6 @@ async function createDevServer(options8) {
|
|
|
257331
257330
|
const customIntegrationRoutes = createCustomIntegrationRoutes(remoteProxy, devLogger);
|
|
257332
257331
|
app.use("/api/apps/:appId/integrations/custom", customIntegrationRoutes);
|
|
257333
257332
|
app.use((req, res, next) => {
|
|
257334
|
-
if (siteUrl && (req.path === "/login" || req.path.startsWith("/login/"))) {
|
|
257335
|
-
const targetUrl = new URL(req.originalUrl, siteUrl);
|
|
257336
|
-
devLogger.warn(`"${req.originalUrl}" requires hosted login, redirecting to ${targetUrl.toString()}`);
|
|
257337
|
-
res.redirect(targetUrl.toString());
|
|
257338
|
-
return;
|
|
257339
|
-
}
|
|
257340
257333
|
if (!req.originalUrl.endsWith("analytics/track/batch")) {
|
|
257341
257334
|
devLogger.warn(`"${req.originalUrl}" is not supported in local development, passing call to production`);
|
|
257342
257335
|
}
|
|
@@ -257442,9 +257435,6 @@ async function devAction(ctx, options8) {
|
|
|
257442
257435
|
}
|
|
257443
257436
|
const port = options8.port ? Number(options8.port) : undefined;
|
|
257444
257437
|
const appId = app.id;
|
|
257445
|
-
const siteUrlPromise = getSiteUrl().catch(() => {
|
|
257446
|
-
return;
|
|
257447
|
-
});
|
|
257448
257438
|
const { port: resolvedPort, isServingFrontend } = await createDevServer({
|
|
257449
257439
|
log,
|
|
257450
257440
|
port,
|
|
@@ -257452,8 +257442,7 @@ async function devAction(ctx, options8) {
|
|
|
257452
257442
|
denoWrapperPath: getDenoWrapperPath(),
|
|
257453
257443
|
loadResources: async () => {
|
|
257454
257444
|
const { functions, entities, project: project2 } = await readProjectConfig();
|
|
257455
|
-
|
|
257456
|
-
return { functions, entities, project: project2, siteUrl };
|
|
257445
|
+
return { functions, entities, project: project2 };
|
|
257457
257446
|
}
|
|
257458
257447
|
});
|
|
257459
257448
|
const outroMessage = isServingFrontend ? "Open your app using the frontend dev server URL" : `Dev server is available at ${theme.colors.links(localServerUrl(resolvedPort))}`;
|
|
@@ -261939,4 +261928,4 @@ export {
|
|
|
261939
261928
|
CLIExitError
|
|
261940
261929
|
};
|
|
261941
261930
|
|
|
261942
|
-
//# debugId=
|
|
261931
|
+
//# debugId=6B1ECA05EAAE1CF664756E2164756E21
|