Skip to content

feat(docs): add vercel analytics and deploy only main - #43

Merged
moshiur01 merged 2 commits into
mainfrom
feat/vercel-analytics
Oct 27, 2026
Merged

moshiur01 merged 2 commits into
mainfrom
feat/vercel-analytics

Conversation

@moshiur01

Copy link
Copy Markdown
Contributor

Two deploy-related changes for the docs app.

Vercel Web Analytics. Adds @vercel/analytics to apps/docs and renders <Analytics /> in the root layout.

Deploy only main. Adds a git.deploymentEnabled rule to apps/docs/vercel.json:

"git": {
  "deploymentEnabled": {
    "**": false,
    "main": true
  }
}

Pushes to any other branch no longer create a preview deployment, so feature branches don't use up Vercel build and deployment limits. Per the Vercel docs, patterns use minimatch and a branch deploys if any matching rule is true, so main still deploys. Checked locally with minimatch: main deploys, while feat/…, fix/…, dev and release/1.0/rc are skipped.

Pull requests won't get preview links anymore. Branches created before this lands keep the old config until they merge main.

Skip automatic preview deployments for every other branch so pushes
to feature branches don't use up Vercel build and deployment limits.
@moshiur01
moshiur01 merged commit ebc79cf into main Oct 27, 2026
1 check passed
@moshiur01
moshiur01 deleted the feat/vercel-analytics branch October 28, 2026 06:29
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