don't rewrite api path in vite

This commit is contained in:
Elizabeth Hunt 2023-09-02 18:04:09 -06:00
parent c370d02ed7
commit c9070bb056
Signed by: simponic
GPG Key ID: 52B3774857EB24B1

View File

@ -8,8 +8,7 @@ export default defineConfig({
proxy: {
'/api': {
target: 'http://localhost:8080',
ws: true,
rewrite: (path) => path.replace(/^\/api/, '')
ws: true
}
}
},