Skip to content

Commit 8cfdd19

Browse files
committed
fix: update base option usage
1 parent 820fe38 commit 8cfdd19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node/build/bundle.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,17 @@ export async function bundle(
3636

3737
const resolveViteConfig = (ssr: boolean): ViteUserConfig => ({
3838
root,
39+
base: config.site.base,
3940
logLevel: 'warn',
4041
plugins: createVitePressPlugin(root, config, ssr, pageToHashMap),
42+
// @ts-ignore
4143
ssr: {
4244
noExternal: ['vitepress']
4345
},
4446
build: {
4547
...options,
4648
emptyOutDir: true,
4749
ssr,
48-
base: config.site.base,
4950
outDir: ssr ? config.tempDir : config.outDir,
5051
cssCodeSplit: false,
5152
rollupOptions: {

0 commit comments

Comments
 (0)