Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/stupefied-wave-go8s7s?file=%2Fnext-env.d.ts
To Reproduce
This is an issue with the create-next-app template.
- Create a new next app with app router
- The last line in
next-env.d.ts is
// see https://nextjs.org/docs/basic-features/typescript for more information.
- If you open the link, it's the pages router docs
Current vs. Expected behavior
The link should link to https://nextjs.org/docs/app/building-your-application/configuring/typescript
Provide environment information
Operating System:
Platform: linux
Arch: x64
Version: #1 SMP PREEMPT_DYNAMIC Sat, 03 Aug 2024 17:56:17 +0000
Available memory (MB): 32018
Available CPU cores: 12
Binaries:
Node: 20.16.0
npm: 10.8.2
Yarn: 1.22.22
pnpm: 9.6.0
Relevant Packages:
next: 15.0.0-canary.102 // Latest available version is detected (15.0.0-canary.102).
eslint-config-next: N/A
react: 19.0.0-rc-06d0b89e-20240801
react-dom: 19.0.0-rc-06d0b89e-20240801
typescript: 5.5.4
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
create-next-app
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This is more of a minor annoyance, and not really a bug, but still I think it's worth fixing. Especially because it might confuse new devs.
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/stupefied-wave-go8s7s?file=%2Fnext-env.d.ts
To Reproduce
This is an issue with the
create-next-apptemplate.next-env.d.tsisCurrent vs. Expected behavior
The link should link to
https://nextjs.org/docs/app/building-your-application/configuring/typescriptProvide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP PREEMPT_DYNAMIC Sat, 03 Aug 2024 17:56:17 +0000 Available memory (MB): 32018 Available CPU cores: 12 Binaries: Node: 20.16.0 npm: 10.8.2 Yarn: 1.22.22 pnpm: 9.6.0 Relevant Packages: next: 15.0.0-canary.102 // Latest available version is detected (15.0.0-canary.102). eslint-config-next: N/A react: 19.0.0-rc-06d0b89e-20240801 react-dom: 19.0.0-rc-06d0b89e-20240801 typescript: 5.5.4 Next.js Config: output: N/AWhich area(s) are affected? (Select all that apply)
create-next-app
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This is more of a minor annoyance, and not really a bug, but still I think it's worth fixing. Especially because it might confuse new devs.