Extending req/res objects in custom server/standalone mode for App router #55548
Labels
bug
Issue was opened via the bug report template.
locked
Output (export/standalone)
Related to the the output option in `next.config.js`.
Link to the code that reproduces this issue
#54440
To Reproduce
See #54440
Current vs. Expected behavior
See #54440
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.6.0: Wed Jul 5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020 Binaries: Node: 16.20.1 npm: 8.19.4 Yarn: N/A pnpm: N/A Relevant Packages: next: 13.4.20-canary.37 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 5.0.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
App Router, Standalone mode (output: "standalone")
Additional context
Is this behavior suppose to exist for App router?
Based on the docs here, it seems that extending/modifying the Request object and accessing it in the App router is not possible. How will these use cases which were supported in Pages router be supported in App router?
The text was updated successfully, but these errors were encountered: