Dynamic routes/pages not visible in `local` search
Author: lukasberbuerCreated Sep 11, 2023Updated Oct 1, 2026
Labelsstale
Describe the bug
Dynamic routes/pages are not visible with the local search.
Is there any way to manually add dynamic content to be searchable?
Reproduction
Similar setup as in documentation: https://vitepress.dev/guide/routing#dynamic-routes
Expected behavior
Search finds dynamic generated pages.
System Info
System:
OS: Windows 10 10.0.22621
CPU: (12) x64 Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz
Memory: 5.22 GB / 15.79 GB
Binaries:
Node: 18.16.1 - C:\Program Files\nodejs\node.EXE
npm: 8.15.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 116.0.5845.180
Edge: Spartan (44.22621.2215.0), Chromium (116.0.1938.76)
Internet Explorer: 11.0.22621.1
npmPackages:
vitepress: ^1.0.0-rc.12 => 1.0.0-rc.12Additional context
No response
Validations
- Check if you're on the latest VitePress version.
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Source: vuejs/vitepress