From 7fe950488f8746326b504af1d00a5e2678a8f7c4 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 20 Mar 2025 18:37:25 +0100 Subject: [PATCH] Remove reference to nonexistent environment variable --- moneymgr_web/src/App.tsx | 3 +-- moneymgr_web/src/api/ApiClient.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/moneymgr_web/src/App.tsx b/moneymgr_web/src/App.tsx index 50411fc..5fc3d18 100644 --- a/moneymgr_web/src/App.tsx +++ b/moneymgr_web/src/App.tsx @@ -49,8 +49,7 @@ export function App() { } /> ) - ), - { basename: import.meta.env.VITE_APP_BASENAME } + ) ); return ( diff --git a/moneymgr_web/src/api/ApiClient.ts b/moneymgr_web/src/api/ApiClient.ts index 213ddbc..177ac86 100644 --- a/moneymgr_web/src/api/ApiClient.ts +++ b/moneymgr_web/src/api/ApiClient.ts @@ -163,7 +163,7 @@ export class APIClient { // Handle expired tokens if (status === 412) { AuthApi.UnsetAuthenticated(); - window.location.href = import.meta.env.VITE_APP_BASENAME; + window.location.href = "/"; } if (!args.allowFail && (status < 200 || status > 299))