mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-19 22:41:13 +00:00
fix: vite proxy
This commit is contained in:
parent
fc09a064ba
commit
6b94440e26
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ const config: UserConfig = {
|
|||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8000',
|
||||
target: 'http://127.0.0.1:8000',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, '')
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue