Skip to content

Commit 46a104d

Browse files
committed
feat: 更新 Vite 配置
1 parent 778f2d4 commit 46a104d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/web/vite.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ export default defineConfig({
66
plugins: [vidstack(), sveltekit()],
77
server: {
88
proxy: {
9-
'/api': 'http://localhost:8000'
9+
'/api': {
10+
target: 'http://localhost:3000',
11+
changeOrigin: true,
12+
rewrite: (path) => path.replace(/^\/api/, '')
13+
}
1014
}
1115
}
1216
})

0 commit comments

Comments
 (0)