chore: generate pagefind index at build time, not committed to git

- Add pagefind run step to build script in site/package.json
- Add site/public/pagefind/ to .gitignore (generated at deploy time)
This commit is contained in:
Samuel Berthe 2026-04-14 20:33:29 +02:00
parent a56d8cf2a4
commit d38511d7cb
No known key found for this signature in database
GPG key ID: 64863511FFBD0E3C
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View file

@ -7,6 +7,7 @@ test/rules/
site/node_modules/ site/node_modules/
site/dist/ site/dist/
site/.astro/ site/.astro/
site/public/pagefind/
# Misc # Misc
.worktrees/ .worktrees/

View file

@ -4,7 +4,8 @@
"version": "1.0.0", "version": "1.0.0",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"build": "astro build", "build": "astro build && pagefind --site dist --output-path public/pagefind",
"pagefind": "pagefind --site dist --output-path public/pagefind",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro" "astro": "astro"
}, },