mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-06 19:40:49 +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: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://localhost:8000',
|
target: 'http://127.0.0.1:8000',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/api/, '')
|
rewrite: (path) => path.replace(/^\/api/, '')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue