mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-25 16:37:32 +00:00
fix(studio): a project page opened straight from a link runs apart from Studio (#8697)
* fix(studio): a project page opened straight from a link runs apart from Studio A preview document or project file reached by direct navigation (address bar, chat or mail link) is answered the way one framed by another site already is: in a sandbox, marked, and with its type fixed. Studio's own frames and thumbnail captures are answered as before. The CLI's Studio server and the Studio dev server ask for this; a host that opens previews in its own windows does not have to. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * docs(cli): say how a preview address opened outside Studio behaves Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * refactor(studio-server): split who asks for a preview from how it is answered Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
51f189acf3
commit
7ea6e42f07
@@ -1174,6 +1174,10 @@ Narrow the context with `--context-fields` (`server`, `selection`, `lint`,
|
||||
Your composition opens in HyperFrames Studio, and edits to `index.html` and its
|
||||
sub-compositions refresh live. Preview and render share the same runtime.
|
||||
|
||||
A preview address or project file opened by itself in a browser tab, outside
|
||||
Studio, plays in a sandboxed page: it cannot call the Studio API and is not
|
||||
editable from that tab. Open the Studio project URL to edit.
|
||||
|
||||
The server picks one of three modes by itself: **embedded** (the default for
|
||||
`npx` — Studio bundled in the CLI, no extra dependencies), **local studio**
|
||||
(Vite with full HMR, from a `@hyperframes/studio` source checkout), or
|
||||
|
||||
Reference in New Issue
Block a user