diff --git a/src/index.ts b/src/index.ts index 98f8ab6..6ac3f14 100644 --- a/src/index.ts +++ b/src/index.ts @@ -69,7 +69,12 @@ export default { }); } - const response = await handleRequest(request, env); + let response: Response; + try { + response = await handleRequest(request, env); + } catch { + response = Response.json({ error: "internal server error" }, { status: 500 }); + } const corsResponse = new Response(response.body, response); corsResponse.headers.set("Access-Control-Allow-Origin", "*"); return corsResponse; diff --git a/src/manifest.ts b/src/manifest.ts index ca33758..1989a6e 100644 --- a/src/manifest.ts +++ b/src/manifest.ts @@ -1,6 +1,6 @@ import type { Env, ServicesManifest } from "./types"; -const MANIFEST_URL = "https://infra.dunkirk.sh/services.json"; +const MANIFEST_URL = "https://dots.dunkirk.sh/services.json"; const KV_KEY = "services_manifest"; const TTL_SECONDS = 300;