new-worker.js 485 B

123456789101112131415
  1. /**
  2. * Welcome to Cloudflare Workers! This is your first worker.
  3. *
  4. * - Run `npx wrangler dev src/index.js` 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 `npx wrangler publish src/index.js --name my-worker` to publish your worker
  7. *
  8. * Learn more at https://developers.cloudflare.com/workers/
  9. */
  10. export default {
  11. async fetch(request, env, ctx) {
  12. return new Response("Hello World!");
  13. },
  14. };