Skip to content

Commit

Permalink
fix: proxy was not work
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Apr 13, 2020
1 parent e9f4fb8 commit 5bfee04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
const nodeExternals = require('webpack-node-externals');
const bodyParser = require('body-parser');

if(process.env.IS_PROXY === undefined) process.env.IS_PROXY = '0';

module.exports = {
// mode: 'spa',
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000',
production: process.env.NODE_ENV === "production",
isProxy: process.env.IS_PROXY ? (['false', '0', ''].includes(process.env.IS_PROXY) ? false : true === "") : true,
isProxy: process.env.IS_PROXY ? (['false', '0', ''].includes(process.env.IS_PROXY) ? false : true) : true,
speechEngine: process.env.SPEECH_ENGINE || 'browser',
yandexAPIKey: process.env.YANDEX_WEBSPEECH_KEY
},
Expand Down

0 comments on commit 5bfee04

Please sign in to comment.