diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 106bea0..b4e1371 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -22,7 +22,7 @@ export default defineUserConfig({ ], ["@vuepress/plugin-debug", !isProduction], ], - base: isProduction ? "/Xray-docs-next/" : "", + base: "/Xray-docs-next/", locales: { "/": { lang: "zh-CN", @@ -90,7 +90,7 @@ export default defineUserConfig({ extendsMarkdown: (md) => { md.use(require("markdown-it-footnote")); }, - bundler: isProduction ? "@vuepress/webpack" : "@vuepress/vite", + bundler: "@vuepress/webpack", bundlerConfig: { chainWebpack: (config) => { config.module @@ -102,9 +102,6 @@ export default defineUserConfig({ name: `assets/img/[name].[hash:8].[ext]`, }); }, - viteOptions: { - base: "/Xray-docs-next/", - }, }, //postcss: { plugins: [require("autoprefixer")] } });