Skip to content

Conversation

@onmax
Copy link
Member

@onmax onmax commented Jan 7, 2026

Summary

Pages → Workers migration (Pages lacks cron support needed for hourly syncs)

Changes

  • README: .pages.dev → .workers.dev URLs
  • Add MIGRATION.md with redirect instructions

Post-Merge Actions Required

1. Set up redirects on old Pages deployments

Option A - Dashboard (recommended):
Cloudflare Dashboard → Pages → [Project] → Rules → Redirects:

  • Mainnet: /*https://validators-api-main.workers.dev/$1 (301)
  • Testnet: /*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

curl -I https://validators-api-mainnet.pages.dev/api/v1/status
curl -I https://validators-api-testnet.pages.dev/api/v1/status

Both should return 301 → .workers.dev

See MIGRATION.md for full details.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 7, 2026

Deploying validators-api-testnet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 316ab97
Status:🚫  Build failed.

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 7, 2026

Deploying validators-api-mainnet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 316ab97
Status:🚫  Build failed.

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 7, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

@onmax
Copy link
Member Author

onmax commented Jan 7, 2026

@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.

@onmax onmax force-pushed the docs/workers-migration-urls branch from 4abaf66 to 316ab97 Compare January 7, 2026 11:05
@onmax onmax deployed to preview-testnet January 7, 2026 11:05 — with GitHub Actions Active
@Albermonte
Copy link
Member

image

@onmax
Copy link
Member Author

onmax commented Jan 7, 2026

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.

image

@Albermonte
Copy link
Member

image Look at the dates, is that expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants