shuding / nextra

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

Search hangs and crashes tab after runaway heap allocation #1655

Closed kshehadeh closed 1 year ago

kshehadeh commented 1 year ago

We have created a nextra documentation site using the latest version of Nextra (2.2.19). When our documentation was relatively small and organized with little nesting, we didn't have any issue with search. Once we started adding more folder structure, we started seeing this problem: when the user starts typing in the search input, the page immediately hangs and eventually crashes the tab.

I would be happy to share the index file that is being generated. But I'm not sure exactly which change caused the problem so I'm not sure yet how to reproduce with a simple example.

dimaMachina commented 1 year ago

Please provide reproduction

dimaMachina commented 1 year ago

should be fixed by https://github.com/shuding/nextra/pull/2207, feel free to ask reopen and share index file if you'll have still this issue!