We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c7d887 commit 6627f7cCopy full SHA for 6627f7c
src/bootstrap-environment.ts
@@ -16,6 +16,15 @@ export async function initEnvironmentConfig() {
16
throw new Error("config.json must be an object");
17
}
18
} catch (err) {
19
+ if (
20
+ !environment.production ||
21
+ environment.appVersion === "UNKNOWN" ||
22
+ environment.appVersion === "0.0.0"
23
+ ) {
24
+ // continue in dev versions (e.g. to enable GitHub PR deployments)
25
+ return;
26
+ }
27
+
28
// if offline, the config.json should be served by the service worker
29
// if we cannot get a valid config.json, we won't be able to switch to session_type "synced" and load client data
30
0 commit comments