Skip to content

chore: add .next and .source to .gitignore and remove tracked build artifacts#9

Open
bigboydiamonds wants to merge 1 commit intomainfrom
chore/gitignore
Open

chore: add .next and .source to .gitignore and remove tracked build artifacts#9
bigboydiamonds wants to merge 1 commit intomainfrom
chore/gitignore

Conversation

@bigboydiamonds
Copy link
Copy Markdown

@bigboydiamonds bigboydiamonds commented Apr 1, 2026

Summary

  • Add .next/ and .source/ to .gitignore to prevent tracking auto-generated build output
  • Remove 207 previously committed build artifacts from git history (compiled pages, webpack cache, static chunks, font manifests, etc.)

Context

The .gitignore was originally written for a VitePress-based docs site (.vitepress/dist, .vitepress/cache). After migrating to Fumadocs + Next.js, the equivalent build output directories (.next/, .source/) were never added, causing build artifacts — including webpack bundles, server-rendered pages, and local absolute paths in .source/index.ts — to be committed to the repository.

What changed

  • .gitignore — added .next and .source entries
  • .next/ — removed all tracked files (compiled JS/CSS, cache, manifests, SSR output, type definitions)
  • .source/ — removed auto-generated Fumadocs MDX index and config (regenerated by fumadocs-mdx on postinstall and build)

Test plan

  • Run npm install and verify .source/ is regenerated by the postinstall script
  • Run npm run build and verify .next/ is regenerated and the site builds successfully
  • Confirm git status stays clean after a fresh build

🤖 Generated with Claude Code


Note

Low Risk
Low risk housekeeping change that only updates ignore rules and removes generated build/cache files from version control; runtime behavior is unchanged.

Overview
Updates .gitignore to ignore Next.js (.next) and Fumadocs MDX (.source) generated output.

Removes previously committed .next/* build artifacts/manifests/caches (and related generated files) so the repo no longer tracks build output.

Written by Cursor Bugbot for commit 61c8827. This will update automatically on new commits. Configure here.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 1, 2026

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

Project Deployment Actions Updated (UTC)
docs Error Error Apr 1, 2026 10:10pm

@bigboydiamonds bigboydiamonds requested a review from hoffmabc April 1, 2026 22:16
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