mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-20 16:46:37 +08:00
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:
parent
a56d8cf2a4
commit
d38511d7cb
2 changed files with 3 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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/
|
||||||
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue