Remove reference to nonexistent environment variable

This commit is contained in:
Pierre HUBERT 2025-03-20 18:37:25 +01:00
parent ef26dccb04
commit 7fe950488f
2 changed files with 2 additions and 3 deletions

View File

@ -49,8 +49,7 @@ export function App() {
<Route path="*" element={<NotFoundRoute />} /> <Route path="*" element={<NotFoundRoute />} />
</Route> </Route>
) )
), )
{ basename: import.meta.env.VITE_APP_BASENAME }
); );
return ( return (

View File

@ -163,7 +163,7 @@ export class APIClient {
// Handle expired tokens // Handle expired tokens
if (status === 412) { if (status === 412) {
AuthApi.UnsetAuthenticated(); AuthApi.UnsetAuthenticated();
window.location.href = import.meta.env.VITE_APP_BASENAME; window.location.href = "/";
} }
if (!args.allowFail && (status < 200 || status > 299)) if (!args.allowFail && (status < 200 || status > 299))