-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
Which project does this relate to?
Router
Describe the bug
Issue
When building a TanStack Start project normally (local build), the asset hashes are consistent and everything works as expected.
However, when building the same project inside a Docker container, there’s a mismatch in the hashed style assets. This causes a Flash of Unstyled Content (FOUC) on page load.
Your Example Website or App
https://github.com/killallskywalker/tanstack-reproduce-issue
Steps to Reproduce the Bug or Issue
- Go to this repository - https://github.com/killallskywalker/tanstack-reproduce-issue
- Run
docker compose up - Open localhost:3000 then you can see the mismatch and the FOUC
However , if you do this
1 . npm run build
2 . node .output/server/index.mjs
3 . Open localhost:3000 then you can see all work nicely
Expected behavior
The asset hashes and generated style files should be identical regardless of build environment (local vs Docker) and no FOUC
Screenshots or Videos
Docker Image -
Local Build -
Platform
- Router / Start Version: [1.135.0]
- Bundler: [vite]
- Bundler Version: [7.2.2]
- Nitro V2 Plugin [1.133.19]
Additional context
Step to reproduce also attach in readme of repo .
dulev, andrew-s28 and graup
Metadata
Metadata
Assignees
Labels
No labels

