Skip to content

The link in "next-env.d.ts" always links to "pages" version of the docs #68533

@matrv

Description

@matrv

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.

  1. Create a new next app with app router
  2. The last line in next-env.d.ts is
// see https://nextjs.org/docs/basic-features/typescript for more information.
  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.create-next-appRelated to our CLI tool for quickly starting a new Next.js application.locked

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions