Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Even when using only the app router, pages files are generated. #67214

Open
yongholeeme opened this issue Jun 26, 2024 · 0 comments
Open

Even when using only the app router, pages files are generated. #67214

yongholeeme opened this issue Jun 26, 2024 · 0 comments
Labels
bug Issue was opened via the bug report template. Output (export/standalone) Related to the the output option in `next.config.js`. Pages Router Related to Pages Router.

Comments

@yongholeeme
Copy link

yongholeeme commented Jun 26, 2024

Link to the code that reproduces this issue

https://github.com/yongholeeme/reproduction-pages-file

To Reproduce

  1. $ npx create-next-app@latest
  2. $ pnpm run build
  3. .next/server/pages/404.html, .next/server/pages/500.html exists

Current vs. Expected behavior

I think there is no page router file. I'm curious why the build output includes pages like 404.html and 500.html.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.5.0: Wed May  1 20:19:05 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8112
  Available memory (MB): 24576
  Available CPU cores: 8
Binaries:
  Node: 20.13.1
  npm: 10.5.2
  Yarn: N/A
  pnpm: 9.1.1
Relevant Packages:
  next: 14.2.4 // Latest available version is detected (14.2.4).
  eslint-config-next: 14.2.4
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.2
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Output (export/standalone), Pages Router

Which stage(s) are affected? (Select all that apply)

next build (local)

Additional context

I'm curious why _app is generated in the pages.

@yongholeeme yongholeeme added the bug Issue was opened via the bug report template. label Jun 26, 2024
@github-actions github-actions bot added Output (export/standalone) Related to the the output option in `next.config.js`. Pages Router Related to Pages Router. labels Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. Output (export/standalone) Related to the the output option in `next.config.js`. Pages Router Related to Pages Router.
Projects
None yet
Development

No branches or pull requests

1 participant