Skip to content

Conversation

@sukvvon
Copy link
Contributor

@sukvvon sukvvon commented Jan 31, 2026

🎯 Changes

Add next-env.d.ts to root .gitignore globally, remove 8 tracked next-env.d.ts files from git, and remove duplicate entries from 5 sub-directory .gitignore files.

next-env.d.ts is auto-generated by Next.js and should not be tracked in git.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm run test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Chores
    • Updated TypeScript environment configuration handling and version control tracking across Next.js example projects and integrations to streamline setup and build processes.

✏️ Tip: You can customize this high-level summary in your review settings.

@changeset-bot
Copy link

changeset-bot bot commented Jan 31, 2026

⚠️ No Changeset found

Latest commit: e5a9827

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 31, 2026

📝 Walkthrough

Walkthrough

The PR reorganizes Next.js environment type file handling across example and integration projects. Root .gitignore now ignores next-env.d.ts globally, while subdirectory .gitignore files are updated to stop ignoring these files. Auto-generated type declarations are removed from multiple example project next-env.d.ts files.

Changes

Cohort / File(s) Summary
Root Gitignore Configuration
.gitignore
Added next-env.d.ts to root-level ignore list.
Example Projects - Type Declaration Cleanup
examples/react/auto-refetching/next-env.d.ts, examples/react/infinite-query-with-max-pages/next-env.d.ts, examples/react/load-more-infinite-scroll/next-env.d.ts, examples/react/nextjs/next-env.d.ts, examples/react/optimistic-updates-cache/next-env.d.ts, examples/react/optimistic-updates-ui/next-env.d.ts, examples/react/pagination/next-env.d.ts, examples/react/prefetching/next-env.d.ts
Removed Next.js type reference directives and routes import from all example project next-env.d.ts files.
Example Projects - Gitignore Updates
examples/react/nextjs-app-prefetching/.gitignore, examples/react/nextjs-suspense-streaming/.gitignore
Removed next-env.d.ts from .gitignore to allow file tracking.
Integration Projects - Gitignore Updates
integrations/react-next-14/.gitignore, integrations/react-next-15/.gitignore, integrations/react-next-16/.gitignore
Removed next-env.d.ts from .gitignore entries across all Next.js version integrations.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Poem

🐰 Tidy files, a cleanup so fine,
Type declarations we leave behind,
Gitignore rules reorganized with care,
Next.js environments everywhere!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main objective: adding next-env.d.ts to global .gitignore and removing tracked files from multiple locations.
Description check ✅ Passed The description follows the template structure with all required sections completed: changes explained clearly, checklist marked appropriately, and release impact indicated as dev-only.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link

nx-cloud bot commented Jan 31, 2026

View your CI Pipeline Execution ↗ for commit e5a9827

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 2m 14s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 2s View ↗

☁️ Nx Cloud last updated this comment at 2026-01-31 05:58:31 UTC

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 31, 2026

More templates

@tanstack/angular-query-experimental

npm i https://pkg.pr.new/@tanstack/angular-query-experimental@10083

@tanstack/eslint-plugin-query

npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@10083

@tanstack/query-async-storage-persister

npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@10083

@tanstack/query-broadcast-client-experimental

npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@10083

@tanstack/query-core

npm i https://pkg.pr.new/@tanstack/query-core@10083

@tanstack/query-devtools

npm i https://pkg.pr.new/@tanstack/query-devtools@10083

@tanstack/query-persist-client-core

npm i https://pkg.pr.new/@tanstack/query-persist-client-core@10083

@tanstack/query-sync-storage-persister

npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@10083

@tanstack/react-query

npm i https://pkg.pr.new/@tanstack/react-query@10083

@tanstack/react-query-devtools

npm i https://pkg.pr.new/@tanstack/react-query-devtools@10083

@tanstack/react-query-next-experimental

npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@10083

@tanstack/react-query-persist-client

npm i https://pkg.pr.new/@tanstack/react-query-persist-client@10083

@tanstack/solid-query

npm i https://pkg.pr.new/@tanstack/solid-query@10083

@tanstack/solid-query-devtools

npm i https://pkg.pr.new/@tanstack/solid-query-devtools@10083

@tanstack/solid-query-persist-client

npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@10083

@tanstack/svelte-query

npm i https://pkg.pr.new/@tanstack/svelte-query@10083

@tanstack/svelte-query-devtools

npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@10083

@tanstack/svelte-query-persist-client

npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@10083

@tanstack/vue-query

npm i https://pkg.pr.new/@tanstack/vue-query@10083

@tanstack/vue-query-devtools

npm i https://pkg.pr.new/@tanstack/vue-query-devtools@10083

commit: e5a9827

@sukvvon sukvvon marked this pull request as ready for review January 31, 2026 05:58
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