diff --git a/app/env.ts b/app/env.ts index 5c47b2ad2..6b7ebdb48 100644 --- a/app/env.ts +++ b/app/env.ts @@ -8,4 +8,10 @@ declare global { const env = window.env; +if (!env) { + throw new Error( + "Config could not be be parsed. \nSee: https://docs.getoutline.com/s/hosting/doc/troubleshooting-HXckrzCqDJ#h-config-could-not-be-parsed" + ); +} + export default env;