Proxy API to Traefik in dev mode

This commit is contained in:
Dmitry Sharshakov 2020-02-10 11:38:04 +03:00 committed by GitHub
parent dce6356d75
commit 1cf09d91bb

View file

@ -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