#Pagefind issue on gitlab pages
2 messages · Page 1 of 1 (latest)
Hmm, I don't know enough to give you a confident answer yet. The information extracts provided do not contain specific details about the Astro Starlight search functionality or how to resolve issues related to it.
However, I can provide some general advice based on the information available. The error message you're seeing suggests that the search functionality might only be available in production builds. Make sure you're running a production build of your Astro project when deploying to GitLab Pages.
Here's a general guide on how to deploy an Astro site to GitLab Pages from the Astro documentation (https://docs.astro.build/en/guides/deploy/gitlab#_top):
- Set the correct
siteinastro.config.mjs. - Rename the
public/directory tostatic. - Set
outDir:publicinastro.config.mjs. This setting instructs Astro to put the static build output in a folder calledpublic, which is the folder required by GitLab Pages for exposed files.