everything-dev 0.0.5 → 0.0.7
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/config.ts +1 -0
- package/src/lib/process.ts +6 -0
- package/src/plugin.ts +4 -1
package/package.json
CHANGED
package/src/config.ts
CHANGED
package/src/lib/process.ts
CHANGED
|
@@ -264,6 +264,12 @@ export const spawnRemoteHost = (
|
|
|
264
264
|
return yield* Effect.fail(new Error("HOST_REMOTE_URL not provided for remote host"));
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
+
if (config.env) {
|
|
268
|
+
for (const [key, value] of Object.entries(config.env)) {
|
|
269
|
+
process.env[key] = value;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
267
273
|
callbacks.onStatus(config.name, "starting");
|
|
268
274
|
|
|
269
275
|
const configDir = getConfigDir();
|
package/src/plugin.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
getPortsFromConfig,
|
|
15
15
|
getRemotes,
|
|
16
16
|
loadConfig,
|
|
17
|
+
type RemoteConfig,
|
|
17
18
|
setConfig,
|
|
18
19
|
type SourceMode
|
|
19
20
|
} from "./config";
|
|
@@ -133,7 +134,9 @@ function buildEnvVars(config: AppConfig): Record<string, string> {
|
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
if (config.proxy) {
|
|
136
|
-
|
|
137
|
+
const bosConfig = loadConfig();
|
|
138
|
+
const apiConfig = bosConfig?.app.api as RemoteConfig | undefined;
|
|
139
|
+
env.API_PROXY = apiConfig?.proxy || apiConfig?.production || "true";
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
return env;
|