Proxy API to Traefik in dev mode
This commit is contained in:
parent
dce6356d75
commit
1cf09d91bb
1 changed files with 8 additions and 1 deletions
|
@ -152,7 +152,14 @@ module.exports = function (ctx) {
|
|||
devServer: {
|
||||
// https: true,
|
||||
port: 8081,
|
||||
open: true // opens browser window automatically
|
||||
open: true, // opens browser window automatically
|
||||
proxy: {
|
||||
// proxy all API requests to real Traefik
|
||||
'/api': {
|
||||
target: 'http://localhost:8080',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// animations: 'all', // --- includes all animations
|
||||
|
|
Loading…
Reference in a new issue