From aba685934d8cc56745e76e1d0ae1869d2ffc26de Mon Sep 17 00:00:00 2001 From: kaan Date: Sat, 4 Nov 2023 12:19:09 +0100 Subject: [PATCH] fix: vitepress base url --- docs/.vitepress/config.ts | 1 + vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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, },