index.ts 649 B

123456789101112131415161718
  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.jsonc`. 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. export default {
  14. async fetch(request, env, ctx): Promise<Response> {
  15. return new Response('Hello World!');
  16. },
  17. } satisfies ExportedHandler<Env>;