Skip to content

Commit 090339b

Browse files
committed
fix: vite config base option
1 parent 62afdab commit 090339b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const libConfig = {
7070
const demoConfig = {
7171
...sharedConfig,
7272
root: 'src/demo',
73-
base: '/',
73+
base: process.env.NODE_ENV === 'production' ? '/formeo/' : '/',
7474
resolve: {
7575
alias: {
7676
'formeo': resolve(__dirname, 'src/lib/js/index.js'),

0 commit comments

Comments
 (0)