Reproduction
- Run
react-router build on Windows
- Copy the
build/ output to a Linux server
- Run
react-router-serve ./build/server/index.js on Linux
- Open the app in a browser
System Info
System:
OS: Windows 11 10.0.22631
CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13400
Memory: 25.26 GB / 63.78 GB
Binaries:
Node: 24.14.1 - C:\nvm4w\nodejs\node.EXE
npm: 11.11.0 - C:\nvm4w\nodejs\npm.CMD
Browsers:
Chrome: 146.0.7680.167
Edge: Chromium (145.0.3800.82)
Internet Explorer: 11.0.22621.3527
Used Package Manager
npm (with nvm, nvm4w)
Expected Behavior
Static assets under /assets/* are served correctly regardless of which OS the build was produced on.
Actual Behavior
All /assets/* requests return 404, and the server logs errors like:
GET /assets/entry.client-DDoeskJb.js 404
Error: No route matches URL "/assets/entry.client-DDoeskJb.js"
Reproduction
react-router buildon Windowsbuild/output to a Linux serverreact-router-serve ./build/server/index.json LinuxSystem Info
System: OS: Windows 11 10.0.22631 CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13400 Memory: 25.26 GB / 63.78 GB Binaries: Node: 24.14.1 - C:\nvm4w\nodejs\node.EXE npm: 11.11.0 - C:\nvm4w\nodejs\npm.CMD Browsers: Chrome: 146.0.7680.167 Edge: Chromium (145.0.3800.82) Internet Explorer: 11.0.22621.3527Used Package Manager
npm (with nvm, nvm4w)
Expected Behavior
Static assets under
/assets/*are served correctly regardless of which OS the build was produced on.Actual Behavior
All
/assets/*requests return 404, and the server logs errors like: