host-agnostic configuration of backend URL

This commit is contained in:
Settel 2021-08-15 17:11:56 +02:00
parent ae4d5fdb8f
commit 24d828d420

View File

@ -21,7 +21,7 @@ export default {
plugins: [{ src: '~/plugins/engine', mode: 'client' }], plugins: [{ src: '~/plugins/engine', mode: 'client' }],
axios: { proxy: true }, axios: { proxy: true },
publicRuntimeConfig: { publicRuntimeConfig: {
serverBaseUrl: 'http://localhost:3000/', serverBaseUrl: '/',
}, },
proxy: { proxy: {
'/api/': 'http://localhost:32039', '/api/': 'http://localhost:32039',