fix: proxy to 127.0.0.1:8000 to avoid Node.js localhost IPv6 ECONNREFUSED
This commit is contained in:
@@ -11,7 +11,7 @@ export default defineConfig({
|
||||
server: {
|
||||
port: 5173,
|
||||
proxy: {
|
||||
"/api": { target: "http://localhost:8000", changeOrigin: true },
|
||||
"/api": { target: "http://127.0.0.1:8000", changeOrigin: true },
|
||||
},
|
||||
},
|
||||
test: {
|
||||
|
||||
Reference in New Issue
Block a user