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",