add /api proxy
This commit is contained in:
@@ -27,5 +27,11 @@ export default defineConfig({
|
||||
],
|
||||
server: {
|
||||
allowedHosts: ['delivery.loca.lt', '.loca.lt'],
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8081',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user