fix: pass BASE_URL to ViteSSG (#259)

This commit is contained in:
Sören Martius 2021-12-28 02:01:44 -03:00 committed by GitHub
parent c57d3cfe39
commit cf503587e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))