Skip to content

Conversation

@lforst
Copy link
Contributor

@lforst lforst commented Jan 4, 2024

Fixes #10038

Luca Forstner added 2 commits January 4, 2024 15:47
@lforst lforst merged commit 366ed0b into develop Jan 5, 2024
@lforst lforst deleted the lforst-dont-report-404s-and-300s branch January 5, 2024 09:23
c298lee pushed a commit that referenced this pull request Jan 9, 2024
@karlkeefer
Copy link

@lforst thanks for adding this!

This PR appears to address NEXT_REDIRECT errors in generateMetadata(), but they can also be called in the regular component render logic. That's how it's illustrated in the nextjs docs.

Here's an example error using "@sentry/nextjs": "^7.93.0" which appears to include this fix already.

Am I missing something? Would it be useful to spin up a new issue for this?

Cheers 🥂

@lforst
Copy link
Contributor Author

lforst commented Jan 16, 2024

@karlkeefer Thanks for raising! Looks like that error originated from the Next.js dev tools in the browser. The not-so-bad news is that you will not create these issues in your production environment.

I will get around to fixing this soon but not immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Next.js] Don't report redirect and not-found errors for generation functions.

4 participants