codebam
codebam
CDCloudflare Developers
Created by codebam on 2/13/2025 in #workers-help
`wrangler dev --local` says I don't have a scheduled() function but I clearly have one
✘ [ERROR] Received a ScheduledEvent but we lack a handler for ScheduledEvents (a.k.a. Cron Triggers). Did you remember to export a scheduled() function?
6 replies
CDCloudflare Developers
Created by codebam on 2/13/2025 in #workers-help
`wrangler dev --local` says I don't have a scheduled() function but I clearly have one
this is a bug
6 replies
CDCloudflare Developers
Created by codebam on 2/13/2025 in #workers-help
`wrangler dev --local` says I don't have a scheduled() function but I clearly have one
I get the same error with the default worker it generates
6 replies
CDCloudflare Developers
Created by codebam on 2/13/2025 in #workers-help
`wrangler dev --local` says I don't have a scheduled() function but I clearly have one
I just followed the instructions in the comment
/**
* 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 deploy --name my-worker` to deploy your worker
*
* Learn more at https://developers.cloudflare.com/workers/runtime-apis/scheduled-event/
*/
/**
* 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 deploy --name my-worker` to deploy your worker
*
* Learn more at https://developers.cloudflare.com/workers/runtime-apis/scheduled-event/
*/
6 replies
CDCloudflare Developers
Created by codebam on 12/30/2024 in #pages-help
pages deployment is ignoring NODE_VERSION since 2 days ago
that works, thanks
4 replies
CDCloudflare Developers
Created by codebam on 12/30/2024 in #pages-help
pages deployment is ignoring NODE_VERSION since 2 days ago
I put it in the web interface. where would I put it in wrangler.toml?
4 replies