We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
honeybadger.edge.config.js
yarn build
middleware.js is not being shown in the build output. Middleware code does not execute when I run yarn start.
yarn start
middleware.js file to be shown in the build output
None.
I've debugged the issue, there seems to be a bug in injectHoneybadgerConfigToEntry when handling the case where config file is not present:
injectHoneybadgerConfigToEntry
honeybadger-js/packages/nextjs/src/index.ts
Lines 71 to 73 in 1554425
When I changed it to this:
if (!hbConfigFile) { const result = typeof originalEntry === "function" ? await originalEntry() : { ...originalEntry }; return result; }
the middleware is getting built.
Operating System: MacOS 14.4 Package Name: Next.js 13.4 with page router
The text was updated successfully, but these errors were encountered:
Hey @sayoojtmc, thanks for reporting an issue! We'll take a look and come back to you.
Sorry, something went wrong.
Hey @subzero10 , any update on this? I'd be happy to raise a PR for this.
fix(nextjs): return the correct result if file is missing
c03c3f7
Refs: #1348
Hey @sayoojtmc, I just submitted this PR, which is identical to your fix. Thanks again!
subzero10
Successfully merging a pull request may close this issue.
What are the steps to reproduce this issue?
honeybadger.edge.config.js
fileyarn build
What happens?
middleware.js is not being shown in the build output. Middleware code does not execute when I run
yarn start
.What were you expecting to happen?
middleware.js file to be shown in the build output
Any logs, error output, etc?
None.
Any other comments?
I've debugged the issue, there seems to be a bug in
injectHoneybadgerConfigToEntry
when handling the case where config file is not present:honeybadger-js/packages/nextjs/src/index.ts
Lines 71 to 73 in 1554425
When I changed it to this:
the middleware is getting built.
What versions are you using?
Operating System: MacOS 14.4
Package Name: Next.js 13.4 with page router
The text was updated successfully, but these errors were encountered: