Create assetlinks.json.js

This commit is contained in:
2025-08-26 10:52:05 -07:00
committed by GitHub
parent 87b0552db1
commit 43b6ae4f36

View File

@@ -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" } });
};