You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b7d35ca
Browse filesBrowse the repository at this point in the historyBrowse files
Serialize production frontend work sharing one .web directory
Two exports (or an export and a prod/preview start) in the same project
used to race on .web: the second replaced build/ and env.json while the
first was still compiling or zipping, so one of them shipped the other's
frontend. Hold an exclusive, reentrant file lock on
.web/.reflex-build.lock from compilation through ZIP creation, release it
before serving, and never create .web for a backend-only export that has
nothing to protect.
Split out of #7054 (lock only; the opt-in build cache that needs it follows
separately).
Claude-Session: https://claude.ai/code/session_018nWB9r2HcC5tkT72UxWgGj
Production exports, `reflex run --env prod`, and preview startup that share a `.web` directory now wait for one another instead of overwriting each other's compiled frontend and archives. The lock file `.web/.reflex-build.lock` stays in place between commands.
0 commit comments