diff --git a/src/plugins/app.ts b/src/plugins/app.ts index f2080ef7..b84f37ac 100644 --- a/src/plugins/app.ts +++ b/src/plugins/app.ts @@ -64,7 +64,8 @@ export function setupAppVersionNotification() { } async function getHtmlBuildTime() { - const res = await fetch(`/index.html?time=${Date.now()}`); + const baseUrl = import.meta.env.VITE_BASE_URL === '/' ? '' : import.meta.env.VITE_BASE_URL + const res = await fetch(`${baseUrl}/index.html?time=${Date.now()}`); const html = await res.text();