How to Dynamically Add Pages for Search Indexing at Runtime in VuePress 2? #1669
Unanswered
magicfarm123
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm migrating a VuePress 1 site to VuePress 2. In VuePress 1, I was able to fetch data (eg, videos) from an API at runtime and Inject new pages into $site.pages which allowed the built-in search plugin to index these dynamic pages without rebuilding the site.
In VuePress 2, Is there any way to add new pages or update the search index at runtime (after deployment), so that newly fetched content can be searchable immediately?
Is runtime page injection or search index update supported in VuePress 2?
If not, are there recommended approaches for dynamic content and search (eg, custom client-side search, third-party plugins)?
Are there official docs or references that clarify this limitation?
Beta Was this translation helpful? Give feedback.
All reactions