Files
blog-nextjs/components
gbanyan 854c5a1097 Fix search on Vercel by serving Pagefind as static files
The previous approach using an API route to serve Pagefind files
doesn't work on Vercel's serverless environment because fs.readFile
can't reliably access files in the deployed output.

Solution: Serve Pagefind files directly from public/_pagefind as
static assets, which is the standard Next.js approach and works
reliably on all deployment platforms.

Changes:
- Update search modal to load from /_pagefind/ instead of /pagefind/
- Remove app/pagefind/[...path]/route.ts API route (no longer needed)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 16:46:10 +08:00
..
2025-11-19 17:38:45 +08:00
2025-11-17 15:28:20 +08:00
2025-11-18 17:34:05 +08:00
2025-11-19 00:42:53 +08:00
2025-11-19 21:46:49 +08:00
2025-11-19 00:30:35 +08:00
2025-11-19 17:38:45 +08:00
2025-11-18 17:34:05 +08:00