From bb1336fc564ebc2e682bb19ccf1adea7266471c2 Mon Sep 17 00:00:00 2001 From: Marcus Silva Date: Fri, 19 Oct 2018 15:03:55 -0300 Subject: [PATCH] fix add environment variable (#32) --- next.config.js | 2 +- now.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index aaf42718..e42d3f2c 100644 --- a/next.config.js +++ b/next.config.js @@ -6,6 +6,6 @@ module.exports = { poweredByHeader: false, generateBuildId: async () => pkg.version, publicRuntimeConfig: { - API_URL: 'https://dialetus-service.now.sh', + API_URL: process.env.API_URL, } } diff --git a/now.json b/now.json index 9d33cb7b..7c1eb84c 100644 --- a/now.json +++ b/now.json @@ -1,3 +1,6 @@ { - "alias": "dialetus" + "alias": "dialetus", + "env": { + "API_URL": "https://dialetus-service.now.sh" + } }