Repository navigation
Move hosting from Vercel to Cloudflare as a static app - #20
Merged
Merged
Conversation
Vercel paused the deployment. The app already fetched its data from ClickHouse in the browser, so it does not need a server. Replace Next.js with a Vite single-page app using React Router, served from Cloudflare Workers static assets where requests are not metered. - Keep the same URLs: /org/repo, with deeper GitHub paths redirecting to it. Unknown paths fall back to index.html. - Remove the unused server pieces: /api/stargazers, the server action, unstable_cache and GITHUB_TOKEN. - Replace next-themes with a small theme provider, and apply the theme before first paint from index.html. - Move response headers from next.config.ts to public/_headers. - Replace next lint with a flat ESLint config, and run the build in CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add a Deploy workflow that runs on every push to main, which includes merged pull requests. It calls the existing test workflow first and deploys only if the tests, lint and build pass. The test workflow no longer triggers on pushes to main itself, so the tests run once per push. CI now uses Node 24, the version the new toolchain was verified on. Requires the CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID repository secrets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RepoTable inferred "still loading" from having no rows, so a repo that returned no results never left the skeleton. The same assumption meant "Try Again" cleared the error without fetching again. Track the initial load explicitly and rerun the fetch on retry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vercel paused the deployment, so this moves the site to Cloudflare and removes the need for a server.
What changes
/api/stargazers, the server action, andGITHUB_TOKEN.wrangler.jsonc), where requests for static assets are not metered.Deployworkflow runs the tests, lint and build on every push tomain, then deploys. It uses theCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDrepository secrets.Testing
Deployworkflow has not run yet. Merging this is its first run.Notes
🤖 Generated with Claude Code