Skip to content

Commit 6b0c6b1

Browse files
committed
Use what we have
1 parent 1381961 commit 6b0c6b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/util/postinstall.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ async function getWebConfig() {
5252
).catch((e) => {
5353
// TODO add sensible error
5454
console.error(e);
55-
return undefined;
55+
return configFromEnvironment;
5656
});
5757
if (!response.ok) {
5858
// TODO add sensible error
5959
console.error("yikes.");
60-
return undefined;
60+
return configFromEnvironment;
6161
}
6262
const json = await response.json().catch(() => {
6363
// TODO add sensible error
6464
console.error("also yikes.");
65-
return undefined;
65+
return configFromEnvironment;
6666
});
6767
return { ...json, apiKey };
6868
}

0 commit comments

Comments
 (0)