Support for React Router 7

Any updates on this? :eyes:

Attempted to upgrade our app but now we are blocked on this.

Thank you all for reaching out about this!

We have an internal ticket open to add support for React Router v7 (with Remix). There’s not an estimated availability date set yet, but we’ll update you here as soon as there’s any new info available.

Would be super useful to have vercel support this. For the time being, how are people deploying it on edge functions? The vercel template from react-router only runs it on severless.

Waiting for this to work - basically cant deploy now my updated app now …

Digging into this, it seems even the version of React Router Team’s vercel template that worked a month ago no longer works when deployed, even when pinning all dependencies to the versions that were available at that time

I’ve put up a PR to use the currently unannounced @vercel/react-router/vite preset in case anyone needs to get unblocked now. This has just been published in the last couple days and still seems to be undergoing testing so I assume Vercel Team’s react router template will be posted here too soon once it’s done cooking

great work on the preset, this is a much smoother setup process

Ahhh, whoops, sorry about that oversight folks. We will update to ensure backwards compatibility with the previous template.

In the meantime, you can either:

  1. Change the “Framework Preset” on the Vercel Project back to “Vite”, or
  2. Update your project to remove the Vercel-specific preparation step in the “build” script, like Jacob has done in the PR referenced above

Thanks Nate, I really appreciate your work here and on the presets :pray:

It works! I’ve just tried deploying my website out of curiosity and everything, prerendering included, works like a charm.

It’s done! React Router v7 is now supported on Vercel: x.com

Gotta say, you guys have the perfect timing! Today I planned the soft-launch of my agency’s website and thanks to you, I did it smoothly. Thanks!

React Router 7 + Sanity Studio + Tailwind v4 works smooth