Commit fdd5f06
fix: add pagefind for static export search functionality
- Add pagefind as devDependency (^1.2.1)
- Add postbuild script to generate search index
- Add _pagefind/ to .gitignore
- Configure pagefind to index .next/server/app and output to out/_pagefind
This fixes the production search error where pagefind.js was not found.
With static export, pagefind needs to run post-build to generate the
search index from the built HTML files.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 26143fc commit fdd5f06
2 files changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
0 commit comments