From 4eed1839452b7247af56fb9c76b52267844e3bf0 Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 26 Feb 2019 11:55:16 +0200 Subject: [PATCH] api calls working client/server side (hardcoded values) --- app/nuxt.config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/nuxt.config.js b/app/nuxt.config.js index 2687d0f..30fde13 100644 --- a/app/nuxt.config.js +++ b/app/nuxt.config.js @@ -100,16 +100,16 @@ module.exports = { */ axios: { // See https://github.com/nuxt-community/axios-module#options - // proxy: true, + proxy: true, // baseURL: 'http://' + process.env.URL_EXTERNAL + ':' + process.env.PORT_APP, baseURL: process.env.URL_EXTERNAL, - browserBaseURL: 'https://cms.marcleopold.isnet.uk', + browserBaseURL: 'https://marcleopold.isnet.uk', debug: true, }, - // proxy: { - // '/api/v1/': 'http://' + process.env.URL_EXTERNAL + ':' + process.env.PORT_SERVER - // }, + proxy: { + '/api/v1/': 'https://cms.marcleopold.isnet.uk', + }, /* ** Build configuration