exocore-docs / docs /editor /05-editor-webview.md
ChoruYt's picture
Upload 151 files
dc2b30a verified
|
Raw
History Blame Contribute Delete
1.19 kB

05 — Webview / preview (desktop only)

Whenever the runtime detects a freshly-bound HTTP server it surfaces the URL inside an embedded <iframe> (Webview.tsx). The mobile capture intentionally skips this frame — the embedded preview iframe consistently crashes the Chromium 138 mobile target during Puppeteer captures.

Screenshot

05 — Webview / preview (desktop only) — desktop

Mobile capture is intentionally skipped for this frame — the embedded preview iframe crashes the Chromium 138 mobile target during Puppeteer runs.

What it does

  • Detection: a small line-scanner inside runtime.ts watches stdout for Listening on http://… / Local: http://… and feeds the URL to the webview pane.

  • Reverse-proxy: /exocore/api/editor/proxy/:projectId/* rewrites HTML/JS to keep relative URLs pointing at the proxy.

  • Tunnel button next to the URL spawns a Cloudflare quick-tunnel for sharing.

    Source files

  • routes/editor/runtime.ts


    ← Back to the editor index.