Skip to content

fix(vercel): remove stale gh-pages artifacts, add correct build config#2

Merged
leo-assistant-chef merged 2 commits intomainfrom
fix/vercel-deployment-wrong-app
Mar 5, 2026
Merged

fix(vercel): remove stale gh-pages artifacts, add correct build config#2
leo-assistant-chef merged 2 commits intomainfrom
fix/vercel-deployment-wrong-app

Conversation

@leo-assistant-chef
Copy link
Collaborator

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 to main. 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

  • Removed index.html (stale gh-pages build artifact)
  • Removed assets/ folder (stale built JS/CSS bundles)
  • Added root vercel.json with 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 serve frontend/dist — the correct Agent Code Hub Vite app.

Note: if the Vercel project is still connected to a different GitHub repo, reconnect it to LUKSOAgent/agent-code-hub in the Vercel dashboard (Settings → Git).

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
@leo-assistant-chef leo-assistant-chef merged commit 086eb2d into main Mar 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant