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

Fastify request is not accessible in app of next.js 13. #959

Open
BismitaRath opened this issue Nov 7, 2023 · 0 comments
Open

Fastify request is not accessible in app of next.js 13. #959

BismitaRath opened this issue Nov 7, 2023 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@BismitaRath
Copy link

I am updating from next.js version 12 to next.js 13. With new App folder sturuture it seems like the fastify request is not accessible in the app. Is there any way we can acess?

    fastify.register(require("@fastify/nextjs"), { dev, hostname, port }).after(() => {
         server.next("/api/*", { method: "GET" });
         server.next("/api/*", { method: "POST" });
         server.next("/*", { preHandler }, some-render-logic);

Your Environment

  • node version: 16
  • fastify version: ~4.0.0
  • os: Mac
@BismitaRath BismitaRath added the help wanted Extra attention is needed label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant