fix(wrangler): show correct port in scheduled worker warning
Issue: When running wrangler dev with a worker that has cron triggers, the warning message displayed an invalid URL like curl "http://localhost:undefined/cdn-cgi/handler/scheduled" because the port wasn't yet determined when the warning was logged.
Fix: Moved the warning to after the proxy server is fully ready, where the actual public URL and port are known.
- Tests
- [ ] Tests included/updated
- [x] Tests not necessary because: only shows a warning
- Public documentation
- [ ] Cloudflare docs PR(s):
- [x] Documentation not necessary because: only shows a warning
- Wrangler V3 Backport
- [ ] Wrangler PR:
- [x] Not necessary because: not a patch change
⚠️ No Changeset found
Latest commit: e693fd0ef0f48702e5664bb7070c0a2723ef2cbd
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
create-cloudflare
npm i https://pkg.pr.new/create-cloudflare@11494
@cloudflare/kv-asset-handler
npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@11494
miniflare
npm i https://pkg.pr.new/miniflare@11494
@cloudflare/pages-shared
npm i https://pkg.pr.new/@cloudflare/pages-shared@11494
@cloudflare/unenv-preset
npm i https://pkg.pr.new/@cloudflare/unenv-preset@11494
@cloudflare/vite-plugin
npm i https://pkg.pr.new/@cloudflare/vite-plugin@11494
@cloudflare/vitest-pool-workers
npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@11494
@cloudflare/workers-editor-shared
npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@11494
@cloudflare/workers-utils
npm i https://pkg.pr.new/@cloudflare/workers-utils@11494
wrangler
npm i https://pkg.pr.new/wrangler@11494
commit: e693fd0