Skip to content

Commit

Permalink
fix: base
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyinws committed Nov 2, 2023
1 parent fa8b435 commit bce7d64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default defineConfig({
"suffix": 'yyyy'
})
],
base: '/base/',
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function VitePluginTurboConsole(option?: TurboConsoleOptions): PluginOption {
}
},
configureServer(server) {
server.middlewares.use('/__tc', sirv(DIR_CLIENT, {
server.middlewares.use(`${base}__tc`, sirv(DIR_CLIENT, {
single: true,
dev: true,
}))
Expand Down

0 comments on commit bce7d64

Please sign in to comment.