Which project does this relate to?
Start
Describe the bug
tanstackStart() unconditionally writes assetPrefix to the client rsbuild environment in modifyRsbuildConfig. Because the environment override wins over the root value in rsbuild's merge, Start's write hides whatever the user (or a downstream plugin) had
Complete minimal reproducer
https://github.com/alexandre-marchina/tanstack-start-rsbuild-prefix-repro
Steps to Reproduce the Bug
In the repro above: npm run repro runs three configs (no user config with tanstackStart(), explicit output.assetPrefix with tanstackStart(), and a third without tanstackStart()) and prints the observed env override / effective / root values for each
Expected behavior
- No
output.assetPrefix and no server.base - Start writes nothing to the client environment
output.assetPrefix set - forwarded to the client environment
server.base set - takes precedence
Screenshots or Videos
No response
Platform
- @tanstack/start-plugin-core: 1.168.x (latest)
- @rsbuild/core: 2.1.5
- @tanstack/react-start: 1.168.x
- Environment: macOS, Node.js >= 20
Which project does this relate to?
Start
Describe the bug
tanstackStart()unconditionally writesassetPrefixto the client rsbuild environment inmodifyRsbuildConfig. Because the environment override wins over the root value in rsbuild's merge, Start's write hides whatever the user (or a downstream plugin) hadComplete minimal reproducer
https://github.com/alexandre-marchina/tanstack-start-rsbuild-prefix-repro
Steps to Reproduce the Bug
In the repro above:
npm run reproruns three configs (no user config withtanstackStart(), explicitoutput.assetPrefixwithtanstackStart(), and a third withouttanstackStart()) and prints the observedenv override/effective/rootvalues for eachExpected behavior
output.assetPrefixand noserver.base- Start writes nothing to the client environmentoutput.assetPrefixset - forwarded to the client environmentserver.baseset - takes precedenceScreenshots or Videos
No response
Platform