Start command doesn't work with react-router vercel preset

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

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.