I’m trying to set vite up so that requests to an api are proxied, but it only seems to work for relative paths. How can I proxy requests to full urls? The examples on the vite docs only seem to cover relative paths
I have tried this:
proxy: {
"http://some-api.com/base/": {
target: "http://some-local-api:8080/",
changeOrigin: true,
secure: false,
},
}
But any requests to http://some-api.com/base/
seem to be ignored by the proxy config
New contributor
dobm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.