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>
7.4 KiB
7.4 KiB