From d38511d7cb224ea2eedb6bdb284bbbde62677423 Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Tue, 14 Apr 2026 20:33:29 +0200 Subject: [PATCH] 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) --- .gitignore | 1 + site/package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b70799c..2bd6163 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ test/rules/ site/node_modules/ site/dist/ site/.astro/ +site/public/pagefind/ # Misc .worktrees/ \ No newline at end of file diff --git a/site/package.json b/site/package.json index b02c2d9..a52703b 100644 --- a/site/package.json +++ b/site/package.json @@ -4,7 +4,8 @@ "version": "1.0.0", "scripts": { "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", "astro": "astro" },