shishkin / astro-pagefind

Astro integration for Pagefind static site search.
MIT License
266 stars 15 forks source link

feat: pagefind config adding pagefind config params to the astro plugin #58

Closed 1800joe closed 10 months ago

1800joe commented 1 year ago

This is a somewhat crude, but workable approach that makes the astro plugin aware of any config that gets sent to pagefind. It's necessary because if the subdir config is changed on pagefind, the astro plugin is configured to only use the default location and thus assets won't be found.

1800joe commented 1 year ago

Disregard the commit changing the project URL (it's been reverted) I was playing around with a way to create a GH package and didn't realize I was still on the main branch

shishkin commented 10 months ago

Hi @1800joe, I see what you're trying to achieve is to override where pagefind outputs the index and where this integration reads them from.

However, I would like to avoid using environment variables and go for integration options instead. Feel free to resubmit the PR is you feel it is still relevant.