Repository navigation
refactor: migrate to TanStack Start and Router - #492
Merged
Merged
Conversation
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
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.
I'm tired of React Router's endless API changes and the recurring migration work they create. TanStack Router offers better route type safety, allowing invalid paths to be caught at compile time rather than discovered at runtime.
This PR migrates the website to TanStack Start with SSR and the extension to TanStack Router while preserving its hash-based options URLs. Both applications register their router types, validate internal navigation, and include compile-time regression checks that reject invalid routes. Popup and background links into the extension's options page also use a typed URL helper.
The website's GitHub Star count display, API request, and associated loader/cache logic are removed; the repository link remains. React Router dependencies and adapters are removed, and the lockfile is updated.
Deployment changes: the website now uses the official Cloudflare Workers integration instead of Cloudflare Pages Functions. The existing Pages deployment and custom domain must be migrated to Workers before publishing this build. Instructions are in
website/README.md; no production deployment has been performed.Validation:
git diff --checkpassed.