mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-21 21:32:13 +01:00
Fix electron:start task not having wcloud env vars (#1261)
This commit is contained in:
parent
e9e363155e
commit
3a21d3183c
@ -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.
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user