Skip to content

ci(vercel): deploy only main through git.deploymentEnabled - #48

Merged
analiaacostaok merged 1 commit into
mainfrom
hosting/small-deployments
Oct 28, 2026
Merged

analiaacostaok merged 1 commit into
mainfrom
hosting/small-deployments

Conversation

@analiaacostaok

Copy link
Copy Markdown
Member

The team's Vercel Functions storage filled the Hobby limit (6.25 GB). Every deployment's function counts toward it, and each pushed branch made a preview deployment.

What changed

  • vercel.json: git.deploymentEnabled { "main": true, "**": false } deploys main only, so a pushed branch or PR makes no deployment.
  • Docs: the deploy notes say so.

Already applied outside the repo: deployment retention 1 day (Vercel still keeps the current production deployment and the last 10 for rollback), and old deployments were removed.

Heads-up

This project has Preview-scoped environment variables (including DATABASE_URL), so its previews worked. After merge, PRs get no Vercel preview: try a branch locally with npm run build and npm run start. To bring previews back for one branch, add it to deploymentEnabled with true.

An Ignored Build Step command was not used: on kimentum one that skipped non-production builds also skipped production, and a skipped build still counts as a deployment.

Checks

  • vercel.json parses. Not built locally: the change is deployment config only.
  • The same rule on kimentum: pushing a branch created no deployment.
  • After merge: check that the main deploy goes READY.

🤖 Generated with Claude Code

Every deployment's function counts toward the team's Vercel storage, and branch previews filled the Hobby limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@analiaacostaok
analiaacostaok merged commit 0075ac1 into main Oct 28, 2026
4 checks passed
@analiaacostaok
analiaacostaok deleted the hosting/small-deployments branch October 28, 2026 17:37
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