Throw error when API_URI is not set
This commit is contained in:
parent
96d18569d5
commit
8bdfbfc0eb
1 changed files with 4 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue