Open
Description
Potential fix: change process.cwd()
in this line
to viteConfig.root
I'm using React Router as a...
framework
Reproduction
Go here and run pnpm build
, you'll see prerender route output to a wrong place
System Info
Not related.
Used Package Manager
pnpm
Expected Behavior
The file should be generated to build/client
folder
Actual Behavior
The file was generated to current folder under a long path like: ./Users/user/react-router-project/build/client/index.html
(note this is under current project directory