Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should support prerender=true #74

Open
Reimirno opened this issue Mar 26, 2024 · 1 comment
Open

Should support prerender=true #74

Reimirno opened this issue Mar 26, 2024 · 1 comment

Comments

@Reimirno
Copy link

When output type is set to server instead of hybrid or static the following is shown when building the project (and search is broken)

16:07:20 [WARN] [pagefind] Output type `server` does not produce static *.html pages in its output and thus will not work with astro-pagefind integration.
16:07:20 [WARN] [pagefind] astro-pagefind couldn't reliably determine the output directory. Search assets will not be served.

However for pages marked export const prerender=true a HTML will still be generated. Is there any specific limitation that prevents pagefind from scanning those files?

@shishkin
Copy link
Owner

This integration relies on Astro generating actual HTML files in the output directory and on output directory being in the config. That's why server mode is not generally supported. What is your use case that you need static search but can't use hybrid mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants