diff --git a/docs-src/src/Data.ts b/docs-src/src/Data.ts index f7ece28..ae5e945 100644 --- a/docs-src/src/Data.ts +++ b/docs-src/src/Data.ts @@ -47,7 +47,7 @@ export function getData(): Promise { }) } if (loadPromise === null) { - loadPromise = fetch('/assets/data.json').then((response) => { + loadPromise = fetch('./assets/data.json').then((response) => { if (!response.ok) { throw new Error(response.statusText) } diff --git a/docs-src/vite.config.ts b/docs-src/vite.config.ts index 69286ba..c7b9776 100644 --- a/docs-src/vite.config.ts +++ b/docs-src/vite.config.ts @@ -8,6 +8,7 @@ import Components from 'unplugin-vue-components/vite' // https://vitejs.dev/config/ export default defineConfig({ + base: '/unipoints/', build: { outDir: '../docs', emptyOutDir: true