Open silas opened 1 year ago
A good explanation of why this happens is written here https://github.com/shuding/nextra/issues/2077#issuecomment-1644905328
You probably have noticed this doesn't happen on Development environment, because dev only loads indexes for pages you already visited (that are in the .next/statics/chunk), so it won't load those heavy pages. But, during the build process, it generates these chunks for every page available on your project, thus breaking your page when you focus on Search field.
PR to improve docs is welcome
A good explanation of why this happens is written here #2077 (comment)
Thanks for the link!
PR to improve docs is welcome
Yeah, I was trying to find a good place to add a note, but there isn't anywhere obvious. The only place search is really mentioned is in the themes config and I doubt anyone would notice it there.
A page dedicated to search would probably be useful at some point, but I don't really have enough content to justify adding one right now.
I guess I'll just close this issue for now, maybe it's existence and the link provided will be enough for people that go digging.
Not sure if this is something that can be easily fixed with the current
NextraSearchPlugin
setup, but it was initially confusing to me that Flexsearch was only including a subset of pages when running it in dev.You can see this on main by running
examples/docs
and loading the root page.If you look at the nextra data file you'll see:
If you then click
Getting Started
you'll see:If you reset the dev server the file is reset.
Do you think it's worth calling this out somewhere in the documentation or maybe updating how this file is generated in dev to include all the data?