diff --git a/functions/.well-known/assetlinks.json.js b/functions/.well-known/assetlinks.json.js new file mode 100644 index 0000000..8288eb6 --- /dev/null +++ b/functions/.well-known/assetlinks.json.js @@ -0,0 +1,7 @@ +export const onRequestGet = async () => { + const url = "https://raw.githubusercontent.com/OWNER/REPO/BRANCH/.well-known/assetlinks.json"; + const r = await fetch(url, { cf: { cacheTtl: 0, cacheEverything: false } }); + if (!r.ok) return new Response("not found", { status: 404 }); + const body = await r.text(); + return new Response(body, { status: 200, headers: { "content-type": "application/json; charset=utf-8", "cache-control": "no-store" } }); +};