Skip to content

Commit ac15d9f

Browse files
committed
feat: update publicPath
1 parent 977b4ea commit ac15d9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.dumirc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ import { join } from 'path';
33
import { defineThemeConfig } from 'dumi-theme-antd/dist/defineThemeConfig';
44

55
const isProduction = process.env.NODE_ENV === 'production';
6-
const basePath = isProduction ? '/portal' : '';
6+
const basePath = isProduction ? '/portal/' : '/';
77

88
const themeConfig = defineThemeConfig({
9-
base: basePath,
109
name: 'GraphScope',
1110
title: 'GraphScope Portal',
1211
logo: 'https://img.alicdn.com/imgextra/i4/O1CN01uhy1Yu1lO7HkUaW3K_!!6000000004808-2-tps-256-257.png',
@@ -161,6 +160,8 @@ const themeConfig = defineThemeConfig({
161160
],
162161
});
163162
export default defineConfig({
163+
base: basePath,
164+
publicPath: basePath,
164165
title: 'GraphScope',
165166
favicons: ['https://img.alicdn.com/imgextra/i3/O1CN01DaSVLB1lD7ZIbDOi2_!!6000000004784-2-tps-256-257.png'], // 网站 favicon
166167
metas: [

0 commit comments

Comments
 (0)