From cf503587e7aff7c046dcee2eba16a47ad90ec99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Martius?= Date: Tue, 28 Dec 2021 02:01:44 -0300 Subject: [PATCH] fix: pass BASE_URL to ViteSSG (#259) --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index eea3518..0ebb1d9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,7 +19,7 @@ const routes = setupLayouts(generatedRoutes) // https://github.com/antfu/vite-ssg export const createApp = ViteSSG( App, - { routes }, + { routes, base: import.meta.env.BASE_URL }, (ctx) => { // install all modules under `modules/` Object.values(import.meta.globEager('./modules/*.ts')).map(i => i.install?.(ctx))