Fix electron:start task not having wcloud env vars (#1261)

This commit is contained in:
Evan Simkowitz 2024-11-11 10:46:58 -08:00 committed by GitHub
parent e9e363155e
commit 3a21d3183c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,9 @@ tasks:
deps:
- yarn
- build:backend
env:
WCLOUD_ENDPOINT: "https://ot2e112zx5.execute-api.us-west-2.amazonaws.com/dev"
WCLOUD_WS_ENDPOINT: "wss://5lfzlg5crl.execute-api.us-west-2.amazonaws.com/dev/"
storybook:
desc: Start the Storybook server.

View File

@ -17,6 +17,7 @@ app.setName("waveterm/electron");
const isDev = !app.isPackaged;
const isDevVite = isDev && process.env.ELECTRON_RENDERER_URL;
console.log(`Running in ${isDev ? "development" : "production"} mode`);
if (isDev) {
process.env[WaveDevVarName] = "1";
}