mirror of
https://github.com/multipleof4/sune.git
synced 2026-01-14 08:38:00 +00:00
Create assetlinks.json.js
This commit is contained in:
7
functions/.well-known/assetlinks.json.js
Normal file
7
functions/.well-known/assetlinks.json.js
Normal 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" } });
|
||||
};
|
||||
Reference in New Issue
Block a user