Skip to content

Conversation

@EricGrill
Copy link

Summary

When running astro add vercel, the Vercel adapter creates build artifacts in .vercel/output/. This directory should be gitignored to avoid committing build artifacts.

This PR adds automatic .gitignore handling for the Vercel adapter, following the same pattern already used for Cloudflare, Tailwind, Svelte, and other integrations:

  • If .gitignore exists but doesn't contain .vercel, prompts to add it
  • If .gitignore doesn't exist, prompts to create it with .vercel
  • If .vercel is already in .gitignore, skips silently

Closes #15058

Test plan

  1. Run astro add vercel in a project without .gitignore - should prompt to create one
  2. Run astro add vercel in a project with .gitignore without .vercel - should prompt to add it
  3. Run astro add vercel in a project with .gitignore containing .vercel - should skip silently

🤖 Generated with Claude Code

The Vercel adapter outputs build artifacts to .vercel/output which should be gitignored. This change automatically adds .vercel to .gitignore when running `astro add vercel`, following the same pattern used for Cloudflare, Tailwind, and other integrations.

Closes withastro#15058

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@changeset-bot
Copy link

changeset-bot bot commented Jan 13, 2026

🦋 Changeset detected

Latest commit: 0e58495

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Jan 13, 2026
@codspeed-hq
Copy link

codspeed-hq bot commented Jan 13, 2026

Merging this PR will not alter performance

✅ 9 untouched benchmarks


Comparing EricGrill:fix/vercel-gitignore (0e58495) with main (37ab65a)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (7f449b7) during the generation of this report, so 37ab65a was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Astro Vercel integration missing .gitignore entry

1 participant