From b9035d308aa913a81caaf0e3da78cbd7da321479 Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 26 Feb 2019 11:23:16 +0200 Subject: [PATCH] proxy works on page load, not on navigation --- app/nuxt.config.js | 13 +++++++------ server/storage/app/media/.gitkeep | 0 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 server/storage/app/media/.gitkeep diff --git a/app/nuxt.config.js b/app/nuxt.config.js index d92c008..a401eb9 100644 --- a/app/nuxt.config.js +++ b/app/nuxt.config.js @@ -100,14 +100,15 @@ module.exports = { */ axios: { // See https://github.com/nuxt-community/axios-module#options - proxy: true, - baseURL: 'http://' + process.env.URL_EXTERNAL + ':' + process.env.PORT_APP, - debug: false, + // proxy: true, + // baseURL: 'http://' + process.env.URL_EXTERNAL + ':' + process.env.PORT_APP, + baseURL: process.env.URL_EXTERNAL, + debug: true, }, - proxy: { - '/api/v1/': 'http://' + process.env.URL_EXTERNAL + ':' + process.env.PORT_SERVER - }, + // proxy: { + // '/api/v1/': 'http://' + process.env.URL_EXTERNAL + ':' + process.env.PORT_SERVER + // }, /* ** Build configuration diff --git a/server/storage/app/media/.gitkeep b/server/storage/app/media/.gitkeep new file mode 100644 index 0000000..e69de29