docusaurus-search-local
docusaurus-search-local copied to clipboard
Embed `search-index.json` into a js file for Docusaurus Hash Router
Since JSON is not allowed to be loaded through the file:// protocol, we need to update this so that when using the Hash Router option, the search-index.json is embedded into a JS file to allow local search.
Does even the search-index.json look correct when using the hash router?
See #448 and https://github.com/facebook/docusaurus/issues/3825#issuecomment-2219789003