everything-dev 0.0.7 → 0.0.10
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/package.json +1 -1
- package/src/lib/process.ts +6 -2
- package/src/plugin.ts +5 -0
package/package.json
CHANGED
package/src/lib/process.ts
CHANGED
|
@@ -274,7 +274,11 @@ export const spawnRemoteHost = (
|
|
|
274
274
|
|
|
275
275
|
const configDir = getConfigDir();
|
|
276
276
|
const configPath = resolve(configDir, "bos.config.json");
|
|
277
|
-
|
|
277
|
+
|
|
278
|
+
let hostUrl = `http://localhost:${config.port}`;
|
|
279
|
+
if (process.env.HOST_URL) {
|
|
280
|
+
hostUrl = process.env.HOST_URL;
|
|
281
|
+
}
|
|
278
282
|
|
|
279
283
|
const hostSecrets = loadSecretsFor("host");
|
|
280
284
|
const apiSecrets = loadSecretsFor("api");
|
|
@@ -287,7 +291,7 @@ export const spawnRemoteHost = (
|
|
|
287
291
|
const bootstrap: BootstrapConfig = {
|
|
288
292
|
configPath,
|
|
289
293
|
secrets: allSecrets,
|
|
290
|
-
host: { url:
|
|
294
|
+
host: { url: hostUrl },
|
|
291
295
|
ui: { source: uiSource },
|
|
292
296
|
api: { source: apiSource, proxy: apiProxy },
|
|
293
297
|
};
|
package/src/plugin.ts
CHANGED
|
@@ -280,6 +280,10 @@ export default createPlugin({
|
|
|
280
280
|
API_REMOTE_URL: config.app.api.production,
|
|
281
281
|
};
|
|
282
282
|
|
|
283
|
+
if (process.env.HOST_URL) {
|
|
284
|
+
env.HOST_URL = process.env.HOST_URL;
|
|
285
|
+
}
|
|
286
|
+
|
|
283
287
|
const uiConfig = config.app.ui as { ssr?: string };
|
|
284
288
|
if (uiConfig.ssr) {
|
|
285
289
|
env.UI_SSR_URL = uiConfig.ssr;
|
|
@@ -341,6 +345,7 @@ export default createPlugin({
|
|
|
341
345
|
env.NODE_ENV = "development";
|
|
342
346
|
} else {
|
|
343
347
|
env.NODE_ENV = "production";
|
|
348
|
+
env.DEPLOY = "true";
|
|
344
349
|
if (!hasZephyrConfig(bosEnv)) {
|
|
345
350
|
console.log(colors.dim(` ${icons.config} Zephyr tokens not configured - you may be prompted to login`));
|
|
346
351
|
console.log(colors.dim(` Setup: ${ZEPHYR_DOCS_URL}`));
|