From b8398b52f6065204cdc8408013c258004c93d806 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 4 Dec 2025 09:39:53 +0000 Subject: [PATCH 1/2] Docs: Clarify next-env.d.ts purpose Co-authored-by: joseph.chamochumbi --- docs/01-app/01-getting-started/02-project-structure.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/01-app/01-getting-started/02-project-structure.mdx b/docs/01-app/01-getting-started/02-project-structure.mdx index 37685d708ab2ab..f8079633ec2a5c 100644 --- a/docs/01-app/01-getting-started/02-project-structure.mdx +++ b/docs/01-app/01-getting-started/02-project-structure.mdx @@ -44,7 +44,7 @@ Top-level files are used to configure your application, manage dependencies, run | [`.env.development`](/docs/app/guides/environment-variables) | Development environment variables | | [`eslint.config.mjs`](/docs/app/api-reference/config/eslint) | Configuration file for ESLint | | `.gitignore` | Git files and folders to ignore | -| `next-env.d.ts` | TypeScript declaration file for Next.js | +| `next-env.d.ts` | TypeScript declaration file for Next.js (should not be tracked by version control) | | `tsconfig.json` | Configuration file for TypeScript | | `jsconfig.json` | Configuration file for JavaScript | From b119da1f309fe59c5beaebe3d838b53802219ae3 Mon Sep 17 00:00:00 2001 From: Joseph Chamochumbi Date: Thu, 4 Dec 2025 21:48:20 +0100 Subject: [PATCH 2/2] docs: .env files should also be gitignored --- .../02-project-structure.mdx | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/01-app/01-getting-started/02-project-structure.mdx b/docs/01-app/01-getting-started/02-project-structure.mdx index f8079633ec2a5c..f1a01f59795511 100644 --- a/docs/01-app/01-getting-started/02-project-structure.mdx +++ b/docs/01-app/01-getting-started/02-project-structure.mdx @@ -31,22 +31,22 @@ Top-level folders are used to organize your application's code and static assets Top-level files are used to configure your application, manage dependencies, run proxy, integrate monitoring tools, and define environment variables. -| | | -| ---------------------------------------------------------------------------- | --------------------------------------- | -| **Next.js** | | -| [`next.config.js`](/docs/app/api-reference/config/next-config-js) | Configuration file for Next.js | -| [`package.json`](/docs/app/getting-started/installation#manual-installation) | Project dependencies and scripts | -| [`instrumentation.ts`](/docs/app/guides/instrumentation) | OpenTelemetry and Instrumentation file | -| [`proxy.ts`](/docs/app/api-reference/file-conventions/proxy) | Next.js request proxy | -| [`.env`](/docs/app/guides/environment-variables) | Environment variables | -| [`.env.local`](/docs/app/guides/environment-variables) | Local environment variables | -| [`.env.production`](/docs/app/guides/environment-variables) | Production environment variables | -| [`.env.development`](/docs/app/guides/environment-variables) | Development environment variables | -| [`eslint.config.mjs`](/docs/app/api-reference/config/eslint) | Configuration file for ESLint | -| `.gitignore` | Git files and folders to ignore | +| | | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| **Next.js** | | +| [`next.config.js`](/docs/app/api-reference/config/next-config-js) | Configuration file for Next.js | +| [`package.json`](/docs/app/getting-started/installation#manual-installation) | Project dependencies and scripts | +| [`instrumentation.ts`](/docs/app/guides/instrumentation) | OpenTelemetry and Instrumentation file | +| [`proxy.ts`](/docs/app/api-reference/file-conventions/proxy) | Next.js request proxy | +| [`.env`](/docs/app/guides/environment-variables) | Environment variables (should not be tracked by version control) | +| [`.env.local`](/docs/app/guides/environment-variables) | Local environment variables (should not be tracked by version control) | +| [`.env.production`](/docs/app/guides/environment-variables) | Production environment variables (should not be tracked by version control) | +| [`.env.development`](/docs/app/guides/environment-variables) | Development environment variables (should not be tracked by version control) | +| [`eslint.config.mjs`](/docs/app/api-reference/config/eslint) | Configuration file for ESLint | +| `.gitignore` | Git files and folders to ignore | | `next-env.d.ts` | TypeScript declaration file for Next.js (should not be tracked by version control) | -| `tsconfig.json` | Configuration file for TypeScript | -| `jsconfig.json` | Configuration file for JavaScript | +| `tsconfig.json` | Configuration file for TypeScript | +| `jsconfig.json` | Configuration file for JavaScript |