-
Notifications
You must be signed in to change notification settings - Fork 34
🗺️ Upgrade to react-router: 7
#595
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
base: main
Are you sure you want to change the base?
Conversation
|
522e2cf to
d7315a6
Compare
|
In order to help us prioritize this work alongside other things that might require a lot of team discussion and review, I think it'd help if (as part of your spike) you included a list of the most important
|
Agreed. Right now I do not know the answer to most of these questions, as I do not know what react-router addresses in terms of the known problems with Remix 2. As this PR moves forward and figures those parts out, I'll update the PR description! |
|
The first thing that I think we might want to do is to have the theme proxy content-server requests. In other words, rather than the rendered web-page linking to https://my-cdn.com/static/foo.png, it links to Practically, this means instead of rewriting content links in the theme to |
6f0311a to
2f8ed4a
Compare
❌ Deploy Preview for myst-theme failed. Why did it fail? →
|
2f8ed4a to
34bde3b
Compare
@agoose77 will that have a negative/any impact on the static build? |
I don't think so. I think the idea I had is that a deployed theme should not expose CDN information in the rendered page, i.e. is fine, but is not. IIRC the theme already does this link rewriting, so it should not be too hard to rewrite e.g. image URLs on "myst start" instances to point to "/base-url/static/XXX |
We are currently using Remix 1.x, and the latest version is effectively Remix 3.x (react-router 7). This PR is a spike that reworks a previous upgrade attempt to use react-router. It needs a close eye, and only focuses on the book theme.
My intention here is to leave this open when I get some time to move it forward, and to explore the interesting new features like basepath handling, prerendering, etc.
Ignore the blame and commit count -- the commits need to be squashed into something more manageable.