-
Notifications
You must be signed in to change notification settings - Fork 516
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 middleware runtime not supported #717
Comments
Can we change this line to check for https://github.com/trentm/node-bunyan/blob/master/lib/bunyan.js#L55 Though in fact, |
Hi, we are facing the same issue, any news on how to solve this? |
Same problem here - I would love to see some way of actually overriding the environment, or detect next as a separate one. |
this seems to be a common theme pinojs/pino#1909 |
It doesn't seem as though bunyan supports the Node.js middleware runtime. It's a bit of a quirky one, as it's not Node.js nor a strict browser environment.
https://nextjs.org/docs/pages/api-reference/edge
It should be fine, if it is detectable somehow, for the middleware edge runtime to just use the browser version.
The text was updated successfully, but these errors were encountered: