vitepress
vitepress copied to clipboard
Local Search Provider Hash Changes Every Build
Describe the bug
When using the local search provider the hashes of the bundles will change every build.
Reproduction
Set search: { provider: 'local' } then build, note hash of @localSearchIndexroot, then build again, see hash changed.
Expected behavior
The @localSearchIndexroot hash should only change if the contents of the docs changed.
System Info
System:
OS: macOS 14.6.1
CPU: (10) arm64 Apple M1 Max
Memory: 75.22 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.10.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.2.3 - /usr/local/bin/npm
pnpm: 8.15.8 - /usr/local/bin/pnpm
bun: 1.0.0 - ~/.bun/bin/bun
Browsers:
Safari: 17.6
Additional context
No response
Validations
- [X] Check if you're on the latest VitePress version.
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Does this work on macOS?
Yes it does. Looks like you ran it without npx in front. But anyway I can confirm the bug with latest version, no need for env info.
Yes it does. Looks like you ran it without npx in front. But anyway I can confirm the bug with latest version, no need for env info.
Hm, it worked when I retried. Seems like npx was behaving differently when I was using corepack and in a project directory, running it from the home directory resolved the issue.