@stacksolo/cli 0.1.5 → 0.1.6
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/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1249,7 +1249,7 @@ export default defineConfig({
|
|
|
1249
1249
|
plugins: [react()],
|
|
1250
1250
|
server: {
|
|
1251
1251
|
proxy: {
|
|
1252
|
-
'/api': 'http://localhost:
|
|
1252
|
+
'/api': 'http://localhost:8081',
|
|
1253
1253
|
},
|
|
1254
1254
|
},
|
|
1255
1255
|
});
|
|
@@ -1408,7 +1408,7 @@ export default defineConfig({
|
|
|
1408
1408
|
plugins: [vue()],
|
|
1409
1409
|
server: {
|
|
1410
1410
|
proxy: {
|
|
1411
|
-
'/api': 'http://localhost:
|
|
1411
|
+
'/api': 'http://localhost:8081',
|
|
1412
1412
|
},
|
|
1413
1413
|
},
|
|
1414
1414
|
});
|
|
@@ -1588,7 +1588,7 @@ export default defineConfig({
|
|
|
1588
1588
|
plugins: [sveltekit()],
|
|
1589
1589
|
server: {
|
|
1590
1590
|
proxy: {
|
|
1591
|
-
'/api': 'http://localhost:
|
|
1591
|
+
'/api': 'http://localhost:8081',
|
|
1592
1592
|
},
|
|
1593
1593
|
},
|
|
1594
1594
|
});
|
|
@@ -17022,7 +17022,7 @@ function streamWithPrefix(stream, prefix, color) {
|
|
|
17022
17022
|
}
|
|
17023
17023
|
});
|
|
17024
17024
|
}
|
|
17025
|
-
function spawnService(service, manager) {
|
|
17025
|
+
function spawnService(service, manager, firebaseProjectId) {
|
|
17026
17026
|
const env = {
|
|
17027
17027
|
...process.env,
|
|
17028
17028
|
PORT: String(service.port),
|
|
@@ -17032,6 +17032,9 @@ function spawnService(service, manager) {
|
|
|
17032
17032
|
FIREBASE_AUTH_EMULATOR_HOST: "localhost:9099",
|
|
17033
17033
|
PUBSUB_EMULATOR_HOST: "localhost:8085"
|
|
17034
17034
|
};
|
|
17035
|
+
if (firebaseProjectId) {
|
|
17036
|
+
env.FIREBASE_PROJECT_ID = firebaseProjectId;
|
|
17037
|
+
}
|
|
17035
17038
|
const args = service.type === "ui" ? ["run", "dev", "--", "--port", String(service.port)] : ["run", "dev"];
|
|
17036
17039
|
const proc = spawn6("npm", args, {
|
|
17037
17040
|
cwd: service.sourceDir,
|
|
@@ -17175,9 +17178,10 @@ async function startLocalEnvironment(options) {
|
|
|
17175
17178
|
manager.processes.set("firebase-emulator", emulatorProc);
|
|
17176
17179
|
}
|
|
17177
17180
|
}
|
|
17181
|
+
const firebaseProjectId = config.project.gcpKernel?.firebaseProjectId || config.project.gcpProjectId;
|
|
17178
17182
|
const spinner = ora8("Starting services...").start();
|
|
17179
17183
|
for (const service of validServices) {
|
|
17180
|
-
const proc = spawnService(service, manager);
|
|
17184
|
+
const proc = spawnService(service, manager, firebaseProjectId);
|
|
17181
17185
|
if (proc) {
|
|
17182
17186
|
manager.processes.set(service.name, proc);
|
|
17183
17187
|
}
|