[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live) [Feedback](/c/feedback/8) # Support for React Router 7 2122 views · 67 likes · 30 posts Tomasz (@tomekbuszewski) · 2024-12-04 · ♥ 5 Hi, I am currently developing an app using React Router 7 (which is Remix 3, basically) and can't deploy it. It's being detected as a Vite project, which expects static files. If I pick the Remix framework, it also doesn't work. This is a new app, not migrated from an older version, btw. Any news on when this framework will be supported? Anshuman Bhardwaj (@anshumanb) · 2024-12-04 · ♥ 1 Hi @tomekbuszewski, I'll try and recreate this for debugging. I'll update you here when I'm done. Welcome to the Vercel community! Thanks for posting this question here. Anshuman Bhardwaj (@anshumanb) · 2024-12-04 · ♥ 1 Hi @tomekbuszewski, you are right, by default the Vercel platform doesn't pick the correct deployment configuration. Upon some digging, I found this [Vercel template](https://github.com/remix-run/react-router-templates/blob/main/vercel) from the React Router team that works both locally and on Vercel ([my deployment]( https://rrv7.vercel.app/)). This template sets up the build output from React Router into the correct format expected by Vercel. I hope this solves the issue you are facing. Tomasz (@tomekbuszewski) · 2024-12-04 · ♥ 1 Hey, it works! Thanks a lot! I would prefer to have it as an option, like with older Remix and Next, but for now, this is totally fine! Thank you again! Anshuman Bhardwaj (@anshumanb) · 2024-12-04 Thanks for your feedback. I'll relay it to the product team and we'll definitely improve this area. Tomasz (@tomekbuszewski) · 2024-12-13 Hey, sorry for coming back to the topic, but it turns out, the template you provided doesn't work with prerendering. If I remove the `ssr` part in the Vite config, everything works: ```js build: { rollupOptions: isSsrBuild ? { input: "./server/app.ts", } : undefined, }, ``` Otherwise, it just throws `[react-router] Cannot convert undefined or null to object` during the build. Manu (@mobregozo) · 2024-12-20 · ♥ 2 I am in the middle of a migration from remix2 to react-router v7. Will there be a preset for supporting RR7 as a framework in Vercel, is that something you are considering? I want to be sure that the template shared earlier in this conversation is still the way to go. I don't mind waiting, just want to be sure I am making the right call. Thanks for the amazing support! Paul van Dyk (@paulvandyk) · 2024-12-23 · ♥ 2 Reading the messages from @leerob, Vercel is or will be working on a preset for RR7 Framework: * https://github.com/vercel/remix/issues/141#issuecomment-2554164530 * [lrobinson2011 comments on React Router v7 as a framework app doesn't route when deployed](https://old.reddit.com/r/react/comments/1h74ib0/react_router_v7_as_a_framework_app_doesnt_route/m0jc4t8/) We have fully migrated our staging to RR7 using the [Vercel template](https://github.com/remix-run/react-router-templates/blob/main/vercel), but we now encounter quite some issues which we did not encounter with the remix preset. So hopefully it will be fixed once they have a preset for RR7. Manu (@mobregozo) · 2024-12-23 · ♥ 4 Having a dedicated present would be very much appreciated!! I have managed to deploy my web using the current Remix present and installed a dependency I don't need locally, but the preset requires (`@remix-run/dev` and `@remix-run/node`). It works, but this sort of build does not fully support some of the key features of the newer version of the React router. Kevin (@iam-kevin) · 2025-01-04 Is there any updated on this? Vishesh9 (@vishesh9) · 2025-01-05 Any updates on this? Anshuman Bhardwaj (@anshumanb) · 2025-01-06 · ♥ 3 Hi there, we don't have any updates on this yet. We will update this post as soon as we have an update. Greening (@greening) · 2025-01-07 · ♥ 3 Thanks. I bet there are a ton of people trying to get this to work (me included). John (@jshaver-emsi) · 2025-01-07 · ♥ 1 Thanks for working on this. :+1: We're waiting on this too. Arybitskiy (@arybitskiy) · 2025-01-09 Thanks for checking this out, really important feature. MP (@mp-dev) · 2025-01-09 · ♥ 1 We are waiting for this as well... React Router V7 framework support is very important. Would be great to get an ETA? Thanks! Nichtkunst (@nichtkunst-dada) · 2025-01-10 Any updates on this? Icaro (@vanics) · 2025-01-12 · ♥ 1 Are there any updates on this? I am also on standby for this; I will not consider using Vercel until this is addressed. itsgabryx (@therealgabryx) · 2025-01-13 Any updates on this? :eyes: John Griffin (@john-griffin) · 2025-01-14 Attempted to upgrade our app but now we are blocked on this. Amy Egan (@amyegan) · 2025-01-14 · ♥ 5 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. Nischayv (@nischayv) · 2025-01-14 · ♥ 1 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. Santivdt (@santivdt) · 2025-01-24 · ♥ 6 Waiting for this to work - basically cant deploy now my updated app now .. Jacob Paris (@jacobparis) · 2025-02-06 · ♥ 4 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 https://github.com/remix-run/react-router-templates/pull/82 Nathan Rajlich (@tootallnate) · 2025-02-06 · ♥ 7 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 Jacob Paris (@jacobparis) · 2025-02-07 · ♥ 4 Thanks Nate, I really appreciate your work here and on the presets :pray: Tomasz (@tomekbuszewski) · 2025-02-13 · ♥ 3 It works! I've just tried deploying my website out of curiosity and everything, prerendering included, works like a charm. leerob (@leerob) · 2025-02-13 · ♥ 7 It's done! React Router v7 is now supported on Vercel: https://x.com/vercel_changes/status/1890104465862332725 Tomasz (@tomekbuszewski) · 2025-02-13 · ♥ 3 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! Nichtkunst (@nichtkunst-dada) · 2025-02-14 · ♥ 2 React Router 7 + Sanity Studio + Tailwind v4 works smooth