Open JounQin opened 2 days ago
cannot reproduce it
OK, I found the issue is that base: 'docs'
works fine on development, but it requires to be /docs
on previewing. Seems a bit inconsistent. :(
And if server: {open: true}
is provided, it will open browser without base which results a 404 page immediately.
And if
server: {open: true}
is provided, it will open browser without base which results a 404 page immediately.
server: {
open: '/docs',
},
see https://rsbuild.dev/config/server/open#serveropen for more details.
Version
System: OS: macOS 15.0.1 CPU: (10) arm64 Apple M1 Max Memory: 3.78 GB / 64.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 130.0.6723.91 Safari: 18.0.1 npmPackages: @rspress/core: ^1.35.1 => 1.35.1
Details
https://v6zdkq-4173.csb.app/docs
Reproduce link
https://codesandbox.io/p/devbox/quiet-feather-v6zdkq
Reproduce Steps
npm i && npm run build && npm run preview