Added missing axios configuration

This commit is contained in:
Grzegorz Leoniec 2019-01-08 14:36:36 +01:00
parent 7a383c88f1
commit bf73b7ca84
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -1,4 +1,4 @@
export default function({ app }) {
export default ({ app }) => {
const backendUrl = process.env.BACKEND_URL || 'http://localhost:4000'
return {
httpEndpoint: process.server ? backendUrl : '/api',