When using the Platform API to retrieve chats via v0.chats.find(), the
latestVersion.demoUrl field returns a vusercontent.net URL that fails to render
with:
ReferenceError: GENERATING is not defined
This affects chats created after the February 2026 sandbox update. Older chats’
demoUrl still render correctly when embedded in an iframe.
Reproduction:
- Create a chat via the Platform API (or use a recently created one)
- Read latestVersion.demoUrl from the response
- Open the URL in a browser or embed it in an iframe
- The page is blank with GENERATING is not defined in the console
Expected: The demoUrl should render a working preview of the generated app, as
documented in the SDK examples.
Environment:
- v0-sdk@0.16.1
- Embedding via iframe with sandbox=“allow-scripts allow-same-origin
allow-modals allow-forms allow-popups”
Context: We’re building a tool that lists projects/chats via the Platform API
and embeds their previews. Older demoUrl values work fine — this only affects
chats created after the recent sandbox infrastructure change.
For the same project, the preview works correctly in the V0.dev native UI.