Skip to content

Conversation

@oskarrough
Copy link
Contributor

@oskarrough oskarrough commented Jan 28, 2026

This PR rewrites the existing endpoints from next.js + vercel to Cloudflare Workers.

The PR also assumes that we do the "migration-2026" before this, meaning we don't keep or migrate the existing /api/import/firebase-realtime endpoint.

  • all endpoints are kept as they were
  • replaces eslint, editorconfig + prettier with biome
  • now deploys via bun run deploy, and later cloudflare CI from main we can do
  • removes all postgres, firebase admin stuff
  • could update github ci to run new tests

It has tests, but needs more manual testing and verification.

Can test using bun run test:preview which uses the worker URL https://radio4000-api.i4k.workers.dev/.

Closes #21

@vercel
Copy link

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
radio4000-api Error Error Jan 29, 2026 9:41am

Request Review

@oskarrough oskarrough changed the title Rewrite worker Rewrite to worker Jan 28, 2026
@oskarrough
Copy link
Contributor Author

As far as I can see it's ready now if we want this solution.

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.

research if we could migrate the API (next/node/cloudflare) to supabase functions

2 participants