-
Notifications
You must be signed in to change notification settings - Fork 892
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
Pino + NextJs #840
Comments
It should be! |
i have tried but it was working browser console . i don't know want there it should be nextjs console output. |
I don't understand. Can you create a repository to reproduce your problem? |
i will create a respository. give me some time .can you add PR |
@mcollina download this https://github.com/sai1139/pino-nextjs.git
|
@mcollina any update? |
Next.js console shows output during server-side rendering. When you call
|
You can follow the discussion in https://github.com/pinojs/pino-nextjs-example/pull/1/files. |
but every component will not be SSR,In that case. |
Pino completely breaks Next.js Next.js is isomorphic and runs server side and client side.
To reproduce:
Commenting out the changes in https://github.com/UnlyEd/next-right-now/pull/83/files#diff-9cf0826b88e28a9db80f768366ef2986 "unbreaks" the app. |
@Vadorequest check out https://github.com/pinojs/pino-nextjs-example/pull/1/files. As you can see, pino works well with next. I’m not sure what’s the problem of your webpack config. |
This relies on a custom server, which over-complexifies things and is not compatible with the Serverless way of running Next.js. Also, logs written in the browser are sent to the server, maybe that's the point of the example, but that's weird. And overriding the But indeed it doesn't seem to suffer from a webpack issue. |
What do you recommend instead then? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pino is compatibility with NextJs
The text was updated successfully, but these errors were encountered: