add /api proxy

This commit is contained in:
Egor Pozharov
2026-04-14 17:30:43 +06:00
parent 9c9f01b2f2
commit 9abc1e3888
4 changed files with 23 additions and 2 deletions

View File

@@ -27,5 +27,11 @@ export default defineConfig({
],
server: {
allowedHosts: ['delivery.loca.lt', '.loca.lt'],
proxy: {
'/api': {
target: 'http://localhost:8081',
changeOrigin: true,
},
},
},
})