diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 8729cf9..b493b68 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -5,6 +5,7 @@ export default defineConfig({ title: 'TS npm template', description: 'Vitepress documentation example for ts-vite-npm-template repository', lang: 'en-US', + base: '/ts-vite-npm-template/', themeConfig: { // https://vitepress.dev/reference/default-theme-config logo: '/logo.webp', diff --git a/vite.config.ts b/vite.config.ts index b73a25e..a972bc9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,7 +4,7 @@ import { resolve } from 'path' export default defineConfig(({ mode }) => { if (mode === 'live-demo') { return { - base: './ts-vite-npm-template/', + base: './', test: { globals: true, },