Commit 0ac1e45
authored
fix(web): preserve preview session during builds (#136)
## Summary
- keep the hidden preview-session exchange mounted while the branded
build loader covers the starter scaffold
- exchange the one-minute preview URL handoff for the renewable host
cookie before long-running app builds finish
- document the loader/session boundary
## Decision
The preview iframe must stay unmounted until generated content is ready,
but authorization cannot wait that long because URL handoffs expire
after 60 seconds. The existing hidden session-refresh iframe now runs
behind the loader, preserving the security boundary without exposing
starter content.
## Verification
- `pnpm turbo skills:build`
- `pnpm turbo typecheck lint build` (55/55 tasks)
- production reproduction confirmed the branded loader stayed visible
while the original handoff expired, which this change directly prevents
by performing the documented cookie exchange during that state1 parent 085961b commit 0ac1e45
2 files changed
Lines changed: 16 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
414 | 417 | | |
415 | 418 | | |
416 | 419 | | |
| |||
0 commit comments