From 1275fdc0d65b9cda592d473ad31a263f5e8673d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Thu, 23 Feb 2023 22:43:10 +0100 Subject: [PATCH] fix(cli): add navigation compat types to default `next-env.d.ts` (#46321) Until #45819 is landed, we should have the `compat` version (#45919), since the template has a `pages` folder. [Slack thread](https://vercel.slack.com/archives/C03KAR5DCKC/p1677183585403679) ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) --- packages/create-next-app/templates/app/ts/next-env.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/create-next-app/templates/app/ts/next-env.d.ts b/packages/create-next-app/templates/app/ts/next-env.d.ts index 4f11a03dc6cc3..fd36f9494e2c2 100644 --- a/packages/create-next-app/templates/app/ts/next-env.d.ts +++ b/packages/create-next-app/templates/app/ts/next-env.d.ts @@ -1,5 +1,6 @@ /// /// +/// // NOTE: This file should not be edited // see https://nextjs.org/docs/basic-features/typescript for more information.