Skip to content

Commit

Permalink
Merge pull request #7 from codenotary/hotfix/proxy-issue
Browse files Browse the repository at this point in the history
fix: disabled proxy when running in prod
  • Loading branch information
Hextar authored Dec 9, 2021
2 parents 1a97556 + b16117f commit 3f3d3b3
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 3f3d3b3

Please sign in to comment.