fix(vercel): remove stale gh-pages artifacts, add correct build config#2
Merged
leo-assistant-chef merged 2 commits intomainfrom Mar 5, 2026
Merged
Conversation
The Vercel project was serving a pre-built static app (committed as gh-pages artifacts at the repo root) instead of building the actual Vite frontend from frontend/. Changes: - Remove index.html and assets/ (stale gh-pages build output on main) - Add root vercel.json pointing Vercel to build from frontend/ with the correct install/build commands and output directory
…g reconnecting-websocket dep
- ControllerAuth.tsx used named import { Button } but Button.tsx uses
default export — changed to default import
- reconnecting-websocket was in package.json but not installed (missing
from node_modules), causing Rollup build failure — installed properly
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.
Problem
The live site at https://agent-code-hub.vercel.app/ was showing a completely wrong app instead of "Agent Code Hub".
Root cause: Pre-built static files (
index.html+assets/) from a previous gh-pages deployment were committed directly tomain. Vercel found them at the repo root, served them as a static site, and never ran the Vite build — so the wrong app was displayed.Changes
index.html(stale gh-pages build artifact)assets/folder (stale built JS/CSS bundles)vercel.jsonwith correct build configuration:{ "installCommand": "cd frontend && pnpm install", "buildCommand": "cd frontend && pnpm run build", "outputDirectory": "frontend/dist", "framework": "vite" }After merging
Vercel will build from
frontend/and servefrontend/dist— the correct Agent Code Hub Vite app.