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