A decentralized music tracking and discovery platform built on AT Protocol 馃幍
at main 23 lines 889 B view raw
1/** 2 * Welcome to Cloudflare Workers! This is your first worker. 3 * 4 * - Run `npm run dev` in your terminal to start a development server 5 * - Open a browser tab at http://localhost:8787/ to see your worker in action 6 * - Run `npm run deploy` to publish your worker 7 * 8 * Bind resources to your worker in `wrangler.json`. After adding bindings, a type definition for the 9 * `Env` object can be regenerated with `npm run cf-typegen`. 10 * 11 * Learn more at https://developers.cloudflare.com/workers/ 12 */ 13 14export default { 15 async fetch(request, env, ctx): Promise<Response> { 16 const url = new URL(request.url); 17 const proxyUrl = new URL(request.url); 18 proxyUrl.host = "Tsiry-Sandratraina-s-workspace-b1ficn.us-east-1.xata.sh"; 19 proxyUrl.hostname = 20 "Tsiry-Sandratraina-s-workspace-b1ficn.us-east-1.xata.sh"; 21 return fetch(proxyUrl, request) as any; 22 }, 23} satisfies ExportedHandler<Env>;