You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This assumes that the same directory/file structure is accessible after deployment. However, imagine that the deployment would be in such a way that the /search-doc.json would be accessible via /assets/search-doc.json.
It'd be great if the baseUrl (or filenames.{searchDoc, lunrIndex}) would be a configuration so that the user could specify on how to load them on different environments.
The text was updated successfully, but these errors were encountered:
When the plugin is being loaded, it uses
siteConfig
from docusaurus:https://github.com/praveenn77/docusaurus-lunr-search/blob/main/src/theme/SearchBar/index.jsx#L15-L16
which defaults to
baseUrl
and this is used to load the generated JSON files:https://github.com/praveenn77/docusaurus-lunr-search/blob/main/src/theme/SearchBar/index.jsx#L55-L57
This assumes that the same directory/file structure is accessible after deployment. However, imagine that the deployment would be in such a way that the
/search-doc.json
would be accessible via/assets/search-doc.json
.It'd be great if the
baseUrl
(orfilenames.{searchDoc, lunrIndex}
) would be a configuration so that the user could specify on how to load them on different environments.The text was updated successfully, but these errors were encountered: