From 8bdfbfc0ebea961fe51940d345c23a57c83b88f1 Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Fri, 17 Jan 2020 15:59:39 +0100 Subject: [PATCH] Throw error when API_URI is not set --- webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index a61e7595c..ad8a00efb 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -35,6 +35,10 @@ module.exports = (env, argv) => { let fileLoaderPath; let output; + if(!process.env.API_URI) { + throw new Error("Environment variable API_URI not set") + } + if (!devMode) { const publicPath = process.env.STATIC_URL || "/"; output = {