update env
This commit is contained in:
Родитель
2182fc90c8
Коммит
98984033bd
|
@ -1,21 +1,21 @@
|
|||
const fs = require('fs');
|
||||
|
||||
const codeGenUrl = process.env['prodCodeGenUrl-v2'];
|
||||
const graphUrl = process.env['prodGraphUrl'];
|
||||
const interfaceUrl = process.env['prodInterfaceUrl'];
|
||||
const capabilityModelUrl = process.env['prodCapabilityModelUrl'];
|
||||
const graphUrl = process.env['graphUrl'];
|
||||
const interfaceUrl = process.env['interfaceUrl'];
|
||||
const capabilityModelUrl = process.env['capabilityModelUrl'];
|
||||
|
||||
if(!codeGenUrl){
|
||||
throw new Error('Unable to find the variable of prodCodeGenUrl-v2');
|
||||
}
|
||||
if(!graphUrl){
|
||||
throw new Error('Unable to find the variable of prodGraphUrl');
|
||||
throw new Error('Unable to find the variable of graphUrl');
|
||||
}
|
||||
if(!interfaceUrl){
|
||||
throw new Error('Unable to find the variable of prodInterfaceUrl');
|
||||
throw new Error('Unable to find the variable of interfaceUrl');
|
||||
}
|
||||
if(!capabilityModelUrl){
|
||||
throw new Error('Unable to find the variable of prodCapabilityModelUrl');
|
||||
throw new Error('Unable to find the variable of capabilityModelUrl');
|
||||
}
|
||||
|
||||
const packageJson = JSON.parse(fs.readFileSync('package.json'));
|
||||
|
|
Загрузка…
Ссылка в новой задаче