Initial commit (by create-cloudflare CLI)
Details: C3 = create-cloudflare@2.32.1 project name = huskapi package manager = pnpm@9.12.3 wrangler = wrangler@3.86.1 git = 2.47.0
This commit is contained in:
commit
caf49df905
12 changed files with 2197 additions and 0 deletions
18
src/index.ts
Normal file
18
src/index.ts
Normal 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.toml`. 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>;
|
Loading…
Add table
Add a link
Reference in a new issue