Skip to content
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

Server-side rendering #11

Open
Moebits opened this issue Mar 10, 2025 · 0 comments
Open

Server-side rendering #11

Moebits opened this issue Mar 10, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Moebits
Copy link
Owner

Moebits commented Mar 10, 2025

The website loads really slowly on mobile, I think server rendering would be more performant but I'm not too keen on rewriting the whole project to an ssr framework.

The least painful method is probably to update react router and then follow their migration guide to the framework. I̶ ̶t̶h̶i̶n̶k̶ ̶I̶'̶l̶l̶ ̶a̶l̶s̶o̶ ̶n̶e̶e̶d̶ ̶t̶o̶ ̶s̶w̶i̶t̶c̶h̶ ̶f̶r̶o̶m̶ ̶w̶e̶b̶p̶a̶c̶k̶ ̶t̶o̶ ̶v̶i̶t̶e̶ ̶s̶i̶n̶c̶e̶ ̶t̶h̶e̶y̶ ̶d̶o̶n̶'̶t̶ ̶s̶u̶p̶p̶o̶r̶t̶ ̶o̶t̶h̶e̶r̶ ̶b̶u̶n̶d̶l̶e̶r̶s̶ ̶a̶n̶y̶m̶o̶r̶e̶ ̶(̶?̶)̶

Edit: rspack/rsbuild migration is easier: https://github.com/rspack-contrib/rsbuild-plugin-react-router

Reference: https://reactrouter.com/upgrading/component-routes

@Moebits Moebits added the enhancement New feature or request label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant