feat: add nice error page during development (#122)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Bartek Iwańczuk
2022-03-07 21:05:19 +01:00
committed by GitHub
co-authored by Luca Casonato
parent 837d2a7f5e
commit 026ed86f40
10 changed files with 149 additions and 44 deletions
+1
View File
@@ -4,6 +4,7 @@ export const ALIVE_URL = `${INTERNAL_PREFIX}/alive`;
export const BUILD_ID = Deno.env.get("DENO_DEPLOYMENT_ID") ||
crypto.randomUUID();
export const JS_PREFIX = `/js`;
export const DEBUG = !Deno.env.get("DENO_DEPLOYMENT_ID");
export function bundleAssetUrl(path: string) {
return `${INTERNAL_PREFIX}${JS_PREFIX}/${BUILD_ID}${path}`;