From 36ee8d59509e81c2ad458feaed1632ef5311b46c Mon Sep 17 00:00:00 2001 From: Innei Date: Tue, 2 Jul 2024 16:57:46 +0800 Subject: [PATCH] fix: remove process Signed-off-by: Innei --- electron.vite.config.ts | 1 + src/shared/src/constants.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/electron.vite.config.ts b/electron.vite.config.ts index 3a86b4ff24..b2f0955f21 100644 --- a/electron.vite.config.ts +++ b/electron.vite.config.ts @@ -26,6 +26,7 @@ export default defineConfig({ define: { APP_VERSION: JSON.stringify(pkg.version), APP_NAME: JSON.stringify(pkg.productName), + }, }, }) diff --git a/src/shared/src/constants.ts b/src/shared/src/constants.ts index ec0778f9d2..774f7b40ae 100644 --- a/src/shared/src/constants.ts +++ b/src/shared/src/constants.ts @@ -1,4 +1,4 @@ -export const APP_PROTOCOL = import.meta.env.DEV ? "follow-dev" : "follow" +export const APP_PROTOCOL = import.meta.env.DEV ? "follow" : "follow" export const DEEPLINK_SCHEME = `${APP_PROTOCOL}://` -export const WEB_URL = process.env.VERCEL_URL ?? import.meta.env.VERCEL_URL ?? import.meta.env.VITE_WEB_URL +export const WEB_URL = import.meta.env.VITE_VERCEL_URL ?? import.meta.env.VITE_WEB_URL