From 3f8237c9a308d31ae16e1fdd7a658a97e82ab825 Mon Sep 17 00:00:00 2001 From: Ridox_Studio <66634814+codad5@users.noreply.github.com> Date: Wed, 29 Nov 2023 15:13:48 +0100 Subject: [PATCH] Update base URL in vite.config.ts --- vite.config.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 1154d25..6140614 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -17,6 +17,5 @@ export default defineConfig(async () => ({ // 3. to make use of `TAURI_DEBUG` and other env variables // https://tauri.studio/v1/api/config#buildconfig.beforedevcommand envPrefix: ["VITE_", "TAURI_"], - base: "/google-task-tauri/" + base: process.env.NODE_ENV !== "production" ? "/google-task-tauri/" : "/", })); -