mirror of
https://github.com/JonasunderscoreJones/aka-worker.git
synced 2025-10-24 02:19:17 +02:00
Initial commit (by create-cloudflare CLI)
This commit is contained in:
parent
8cb86120f1
commit
fff961078a
1777 changed files with 1011798 additions and 0 deletions
17
cool-dawn-3d3b/node_modules/wrangler/templates/new-worker-scheduled.js
generated
vendored
Normal file
17
cool-dawn-3d3b/node_modules/wrangler/templates/new-worker-scheduled.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* Welcome to Cloudflare Workers! This is your first scheduled worker.
|
||||
*
|
||||
* - Run `wrangler dev --local` in your terminal to start a development server
|
||||
* - Run `curl "http://localhost:8787/cdn-cgi/mf/scheduled"` to trigger the scheduled event
|
||||
* - Go back to the console to see what your worker has logged
|
||||
* - Update the Cron trigger in wrangler.toml (see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers)
|
||||
* - Run `wrangler publish --name my-worker` to publish your worker
|
||||
*
|
||||
* Learn more at https://developers.cloudflare.com/workers/runtime-apis/scheduled-event/
|
||||
*/
|
||||
|
||||
export default {
|
||||
async scheduled(controller, env, ctx) {
|
||||
console.log(`Hello World!`);
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue