fix(frontend): export Expo web so Vercel preview serves HTML - #252
Draft
gac0812 wants to merge 1 commit into
Draft
fix(frontend): export Expo web so Vercel preview serves HTML#252gac0812 wants to merge 1 commit into
gac0812 wants to merge 1 commit into
Conversation
Vercel was publishing frontend source and serving index.ts as video/mp2t, so preview links downloaded a file instead of opening the app.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
gac0812
marked this pull request as draft
August 14, 2026 10:37
There was a problem hiding this comment.
Reviewed the complete fixed diff for the Expo web export, CI coverage, and Vercel deployment/routing contract. The generated web build contains index.html, the local lint/format/typecheck/Vitest/Jest checks pass (Jest reports its existing open-handle warning after all suites pass), and the deployed preview serves text/html at both / and /login plus application/javascript for the bundle asset. I found no actionable correctness, compatibility, or reliability regression introduced by this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #251
Summary
frontend/index.ts当video/mp2t发出去,点开 Preview 会下载文件而不是打开页面。dist/index.html,而不是源码。index.html。Scope
frontend/app.json:声明web.output: "single"frontend/vercel.json:expo export -p web,输出目录dist.github/workflows/ci.yml:增加 Web export 门禁frontend/package.json/.gitignore:导出脚本与dist-web/忽略Out of scope
Test plan
npx expo export --platform web --output-dir dist-web生成本地index.html(text/htmlSPA)Frontend (lint, types, build)通过,其中 Web export 步骤检查到dist-web/index.htmlindex.ts