shuding / nextra

Simple, powerful and flexible site generation framework with everything you love from Next.js.
https://nextra.site
MIT License
11.7k stars 1.27k forks source link

How to make your mdx content available as API? #2315

Open arielconti10 opened 1 year ago

arielconti10 commented 1 year ago

Is there anyway that I can use the same Search of Nextra as an API? I would like to fetch content from my docs inside another project or query my docs in another project using a simple fetch

gfazioli commented 1 day ago

I have the same need. I wanted to know if there's a way to access the "search" function through /api in some way 🙏