Skip to content

Commit

Permalink
fix: disabled proxy when running in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Hextar committed Dec 9, 2021
1 parent 03ebafe commit b16117f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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 }),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "immudb-webconsole",
"version": "1.0.12",
"version": "1.0.13",
"private": true,
"scripts": {
"dev": "nuxt",
Expand Down

0 comments on commit b16117f

Please sign in to comment.