fix: vite proxy

This commit is contained in:
EETagent 2022-12-14 21:09:13 +01:00
parent fc09a064ba
commit 6b94440e26

View file

@ -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/, '')
} }