Using Cloudflare Workers

This commit is contained in:
nexryai
2026-01-07 15:05:46 +00:00
committed by GitHub
parent 98e8a1f10e
commit 4e9349a8c8
13 changed files with 14172 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
/**
* Welcome to Cloudflare Workers! This is your first worker.
*
* - Run `npm run dev` in your terminal to start a development server
* - Open a browser tab at http://localhost:8787/ to see your worker in action
* - Run `npm run deploy` to publish your worker
*
* Bind resources to your worker in `wrangler.jsonc`. After adding bindings, a type definition for the
* `Env` object can be regenerated with `npm run cf-typegen`.
*
* Learn more at https://developers.cloudflare.com/workers/
*/
export default {
async fetch(request, env, ctx): Promise<Response> {
return new Response("Hello World!");
},
} satisfies ExportedHandler<Env>;