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

How can I limit the data from the rss on NextJS? #239

Open
kulterryan opened this issue Dec 30, 2022 · 1 comment
Open

How can I limit the data from the rss on NextJS? #239

kulterryan opened this issue Dec 30, 2022 · 1 comment

Comments

@kulterryan
Copy link

I'm building a Feed Reader using NextJS and I'm getting this error in the console when I build the app. I'm listing only 10-12 feeds from the website. Is there any way I can limit the parser to only 10?

image

@drewgillen
Copy link

This needs to be done within your getStaticProps function. Specify the exact data that you need returned for your page. For example if you only need an article title and 250 characters of text then specify that within your return statement.

If you are returning the entire RSS feed in your getStaticProps function then this error will be thrown.

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

2 participants