Throw error if API_URI is not set
This commit is contained in:
parent
1e1de16c87
commit
6f29fa274e
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@ Polly.register(NodeHttpAdapter);
|
|||
Polly.register(FSPersister);
|
||||
|
||||
function setupApi() {
|
||||
if (!process.env.API_URI) {
|
||||
throw new Error("Environment variable API_URI not set");
|
||||
}
|
||||
|
||||
setupPolly({
|
||||
adapters: ["node-http"],
|
||||
persister: "fs",
|
||||
|
|
Loading…
Reference in a new issue