Skip to content

Commit 0d39c5d

Browse files
luciodaleclaude
andcommitted
Fix pagefind search in prod by outputting under base path
docs-ui-kit loads pagefind from ${BASE_URL}/_pagefind/pagefind.js, which resolves to /projects/react-searchable-dropdown/_pagefind/. The old --output-subdir _pagefind placed files at dist/_pagefind/ (root), causing a 404 at runtime. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9127c2e commit 0d39c5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"scripts": {
66
"dev": "astro dev",
7-
"build": "astro build && bunx pagefind --site dist --output-subdir _pagefind",
7+
"build": "astro build && bunx pagefind --site dist --output-subdir projects/react-searchable-dropdown/_pagefind",
88
"preview": "wrangler dev",
99
"deploy": "bun run build && wrangler deploy"
1010
},

0 commit comments

Comments
 (0)