From b16117fd315608a4d5082d7f86127058b2fd1015 Mon Sep 17 00:00:00 2001 From: Hextar13 Date: Thu, 9 Dec 2021 16:25:31 +0100 Subject: [PATCH] fix: disabled proxy when running in prod --- nuxt.config.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index 040e27e..a4bd27d 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -389,13 +389,13 @@ export default { logLevel: 'debug', }, '/demo/api/': { - target: process.env.DEMO_URL, + target: `${ process.env.DEMO_URL }`, pathRewrite: { '^/demo/api/': '/api/' }, xfwd: true, logLevel: 'debug', }, '/demo/metrics-api/': { - target: process.env.DEMO_URL, + target: `${ process.env.DEMO_URL }`, pathRewrite: { '^/demo/metrics-api/': '/' }, xfwd: true, logLevel: 'debug', @@ -404,7 +404,7 @@ export default { axios: { baseURL: process.env.API_URL || '/api', - proxy: true, + proxy: !IS_PROD, returnRejectedPromiseOnError: true, timeout: 30000, paramsSerializer: params => qs.stringify(params, { indices: false }), diff --git a/package.json b/package.json index 0cdeaed..4207457 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "immudb-webconsole", - "version": "1.0.12", + "version": "1.0.13", "private": true, "scripts": { "dev": "nuxt",