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" },