Skip to content

Wire repo-root vercel.json so policybench.org auto-deploys#11

Closed
MaxGhenis wants to merge 1 commit intomainfrom
chore/vercel-auto-deploy
Closed

Wire repo-root vercel.json so policybench.org auto-deploys#11
MaxGhenis wants to merge 1 commit intomainfrom
chore/vercel-auto-deploy

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Why

Domain policybench.org is now bound to the policybench-site Vercel project (the legacy app and misconfigured policybench projects are gone). That project's rootDirectory is unset, so git auto-deploys try to build from repo root and find no Next.js app.

This adds a repo-root vercel.json that drives the build into app/:

  • framework: nextjs
  • buildCommand: cd app && bun install --frozen-lockfile && bun run build
  • outputDirectory: app/.next

Result: pushing to main triggers a Vercel build that produces the same output as running bun run build inside app/ locally, and the production deploy auto-promotes to policybench.org.

Verification

  • Vercel preview build for this PR will validate the config end-to-end.
  • After merge, the next push should land on policybench.org automatically with no manual vercel --prod step.

🤖 Generated with Claude Code

The Vercel project policy-engine/policybench-site (which serves
policybench.org) has rootDirectory unset, so git auto-deploys try
to build from the repo root and find no Next.js app. This vercel.json
points the build at app/. Drops the legacy app and policybench
projects out of the picture.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policybench-site Error Error May 9, 2026 1:10am

Request Review

@MaxGhenis
Copy link
Copy Markdown
Contributor Author

Approach didn't work: Vercel runs framework detection from rootDirectory before buildCommand, so it errors out trying to find 'next' in the repo-root package.json. The right fix is to set rootDirectory = 'app' in the policybench-site project's Vercel dashboard settings — that's a one-toggle change but isn't exposed via CLI/API without a personal access token.

@MaxGhenis MaxGhenis closed this May 9, 2026
@MaxGhenis MaxGhenis deleted the chore/vercel-auto-deploy branch May 9, 2026 01:11
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