From fd6d6c8fc94b1db37fee78a412eae9321f6c4e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20de=20Metz?= Date: Mon, 22 Apr 2024 20:17:50 +0200 Subject: [PATCH] Set the base parameter for production. --- docs/.vitepress/config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index e22910c..5ad1b23 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -5,6 +5,7 @@ import examplesPath from '../examples/[example].paths.js'; export default defineConfig({ title: "vue-maplibre-gl", description: "Vue 3 plugin for maplibre-gl", + base: process.env.NODE_ENV === 'production' ? '/vue-maplibre-gl/': '/', transformPageData: (pageData, { siteConfig }) => { if (pageData.filePath.startsWith('examples/') && pageData.filePath != 'examples/index.md') { return {