-
Notifications
You must be signed in to change notification settings - Fork 19
docs: update deployment URLs for Workers migration #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
validators-api-test | 316ab97 | Commit Preview URL Branch Preview URL |
Jan 07 2026, 11:08 AM |
|
@Albermonte cloudlfare pages does not support cron job. i have deployed workers instead for having cron jobs. We need to keep the pages for legacy puporses. My plan is to add redirects to the new workers. And then slowly move the ecosystem to the new api endpoint while leaving the original endpoint untouched. related #127. |
4abaf66 to
316ab97
Compare
|
main still not configured. everything for now is testnet: https://validators-api-test.je-cf9.workers.dev/ once testnet is working, i will replicate for mainnet which btw includes cronjobs, although to fully check that, we need to wait for end of epoch to see a longer event. currently the events are so short because db is synced.
|



Summary
Pages → Workers migration (Pages lacks cron support needed for hourly syncs)
Changes
Post-Merge Actions Required
1. Set up redirects on old Pages deployments
Option A - Dashboard (recommended):
Cloudflare Dashboard → Pages → [Project] → Rules → Redirects:
/*→https://validators-api-main.workers.dev/$1(301)/*→https://validators-api-test.workers.dev/$1(301)Option B - _redirects file:
Deploy _redirects file to each Pages project (see MIGRATION.md)
2. Verify redirects work
Both should return 301 → .workers.dev
See MIGRATION.md for full details.