Skip to content

Astro Vercel integration missing .gitignore entry #15058

@alexndrho

Description

@alexndrho

Astro Info

Astro                    v5.16.6
Node                     v22.17.1 (local) / v20.19.1 (stackblitz)
System                   Windows 11 x64 (local) / Linux (stackblitz)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

When running npx astro add vercel to add the Vercel adapter, the .vercel/output directory is not automatically added to .gitignore. This becomes problematic because the .vercel/output directory is generated during npm run build and contains build artifacts that shouldn't be committed to version control.

What's the expected result?

After running npx astro add vercel, the .gitignore file should be automatically updated to include .vercel/output (or .vercel/ more broadly) to prevent build artifacts from being committed to the repository.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-vdc2lc6c?file=package.json

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P2: nice to haveNot breaking anything but nice to have (priority)good first issueGood for newcomers. If you need additional guidance, feel free to post in #dev on Discordpkg: vercelRelated to Vercel adapter (scope)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions