From 885667544f3efaa08aa46e0d27f50e26b89af9b0 Mon Sep 17 00:00:00 2001 From: zhongwencool Date: Wed, 23 Oct 2024 16:41:19 +0800 Subject: [PATCH] don't use base when is empty --- rspress.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rspress.config.ts b/rspress.config.ts index 856e112..9287d13 100644 --- a/rspress.config.ts +++ b/rspress.config.ts @@ -5,7 +5,7 @@ import ga from 'rspress-plugin-google-analytics'; export default defineConfig({ root: path.join(__dirname, 'docs'), - base: process.env.BASE_PATH || '/get-emqx-guard-pro/', + ...(process.env.BASE_PATH ? { base: process.env.BASE_PATH } : {}), title: 'EMQX Guard Pro', description: 'EMQX-Guard-Pro is EMQX plugin that keeping your EMQX cluster robust and secure, provides real-time notifications to your email, slack, dingtalk, wechat, feishu and more.', icon: '/emqx-guardian.svg',