I’d expect react-router-serve ./build/server/index.js
to work
due to vercel rewriting build paths, the ./build/server/index.js does not exist after running npm run build
instead it looks something like: ./build/server/nodejs-eyJtYXhEdXJhdGlvbiI6NjAsInJ1bnRpbWUiOiJub2RlanMifQ/index.js
I use the start command for tests because the dev server is extremely slow
anshumanb
(Anshuman Bhardwaj)
February 19, 2025, 5:38am
2
Hi @lifeiscontent , welcome to the Vercel Community!
Sorry that you’re facing this issue. Please share your public repo or a minimal reproducible example . That will let us all work together from the same code to figure out what’s going wrong.
@anshumanb the Vercel template in the react-router-templates github has this issue. react-router-templates/vercel/package.json at main · remix-run/react-router-templates · GitHub if you run the start command from this project, you’ll see it crash due to not having the expected build output.
system
(system)
Closed
May 20, 2025, 7:31am
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.