From 3a21d3183c9ce7aaa45e9787ce4b8b3d6e736a32 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Mon, 11 Nov 2024 10:46:58 -0800 Subject: [PATCH] Fix electron:start task not having wcloud env vars (#1261) --- Taskfile.yml | 3 +++ emain/platform.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index 8ef5db171..188280671 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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. diff --git a/emain/platform.ts b/emain/platform.ts index d7360cad5..2bab197f6 100644 --- a/emain/platform.ts +++ b/emain/platform.ts @@ -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"; }