feat(web): single-build preview page and its acceptance e2e

One Vite build emits dist/index.html and dist/preview.html sharing every
chunk; the only difference is one prepended bootstrap entry whose module
connects the worker host, so the page from the stock entry onward is the
served startup chain verbatim. The dist moves to a relative base so the
preview mounts under any static directory, and the served form anchors
deep SPA-fallback paths with a rendered <base href="/">. The preview-boot
e2e serves the real built pages, packs the VFS image when absent, and
holds the boot line's lowering contract, the interactive hero, and a
clean page-error channel in headless Chromium.
This commit is contained in:
imccyu
2026-08-21 20:35:33 +08:00
parent fd3112a23f
commit 50bfb00985
14 changed files with 416 additions and 12 deletions
+1
View File
@@ -36,6 +36,7 @@
"apps/web/tests/workspace-management.e2e.ts",
"apps/web/tests/replay-round-trip.e2e.ts",
"apps/web/tests/hmr-live.e2e.ts",
"apps/web/tests/preview-boot.e2e.ts",
"apps/web/tests/seeded-history.e2e.ts",
"apps/web/tests/cold-blank-session.e2e.ts",
"apps/web/tests/stats-paged-history.e2e.ts",