fix: only enable dev things in dev mode (#1789)

This commit is contained in:
Marvin Hagemeister
2023-09-18 15:07:42 +02:00
committed by GitHub
parent ead634b0cf
commit 112d701e5c
5 changed files with 67 additions and 74 deletions
+5
View File
@@ -9,3 +9,8 @@ export const DEBUG = !Deno.env.get("DENO_DEPLOYMENT_ID");
export function bundleAssetUrl(path: string) {
return `${INTERNAL_PREFIX}${JS_PREFIX}/${BUILD_ID}${path}`;
}
export let DEV_MODE = false;
export function setDevMode(value: boolean) {
DEV_MODE = value;
}