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

Static Generation Build Logs cluttered with Fetch API ERROR for Content Links that are optional. #108

Open
jsimondshiebing opened this issue Dec 1, 2023 · 0 comments

Comments

@jsimondshiebing
Copy link

Originally opened here: agility/agility-next#25

Currently when making a request to getContentList within getCustomInitialProps any response that doesn't return with data results in a 404 message being sent to the console. When a content type has an optional reference field (an example being a blog post that has an optional related blog posts section) and a content editor chooses not to select items within the content list it still logs the 404 error message. Adding a try catch statement around the getContentList call isn't able to suppress these as no exception is actually thrown for a try catch to intercept. This results in build logs during static generation to get extremely cluttered when there are hundreds of content items that do not opt in to an optional reference field making actual build log debugging more difficult.

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

No branches or pull requests

1 participant