Throw error when API_URI is not set

This commit is contained in:
dominik-zeglen 2020-01-17 15:59:39 +01:00
parent 96d18569d5
commit 8bdfbfc0eb

View file

@ -35,6 +35,10 @@ module.exports = (env, argv) => {
let fileLoaderPath; let fileLoaderPath;
let output; let output;
if(!process.env.API_URI) {
throw new Error("Environment variable API_URI not set")
}
if (!devMode) { if (!devMode) {
const publicPath = process.env.STATIC_URL || "/"; const publicPath = process.env.STATIC_URL || "/";
output = { output = {