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

next.js 15 after() can not get response.body #67442

Open
kin-for-test opened this issue Jul 4, 2024 · 0 comments
Open

next.js 15 after() can not get response.body #67442

kin-for-test opened this issue Jul 4, 2024 · 0 comments
Labels
bug Issue was opened via the bug report template. Middleware Related to Next.js Middleware

Comments

@kin-for-test
Copy link

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/delicate-cloud-h9jx3h

To Reproduce

in middleware.ts , after() can not catch response.body

Current vs. Expected behavior

Current : null
Expected :"{a:123}"

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 16220
  Available CPU cores: 12
Binaries:
  Node: 21.0.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 15.0.0-canary.54
  eslint-config-next: 14.2.4
  react: 19.0.0-rc-e02baf6c92-20240627
  react-dom: 19.0.0-rc-e02baf6c92-20240627
  typescript: 5.5.2
Next.js Config:
  output: N/A

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

Middleware

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

next dev (local), next start (local)

Additional context

No response

@kin-for-test kin-for-test added the bug Issue was opened via the bug report template. label Jul 4, 2024
@github-actions github-actions bot added the Middleware Related to Next.js Middleware label Jul 4, 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. Middleware Related to Next.js Middleware
Projects
None yet
Development

No branches or pull requests

1 participant