rss-parser icon indicating copy to clipboard operation
rss-parser copied to clipboard

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

Open kulterryan opened this issue 3 years ago • 1 comments

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

kulterryan avatar Dec 30 '22 10:12 kulterryan

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.

drewgillen avatar Jan 21 '23 19:01 drewgillen