From 89bf5373aaa4fdc2831de8286b3992824660a693 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 21 Aug 2023 21:38:30 -0400 Subject: [PATCH] chore: Add pointer to troubleshooting when nonce prevents script execution closes #5718 --- app/env.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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;