Skip to content

Conversation

@JoeyC-Dev
Copy link
Contributor

@JoeyC-Dev JoeyC-Dev commented Jan 8, 2026

Fix /pagefind/pagefind.js 404 issue

Type of change

  • Bug fix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING document.
  • I have checked to ensure that this Pull Request is not for personal changes.
  • I have performed a self-review of my own code.
  • My changes generate no new warnings.

Related Issue

Fix: #705
Fix: #529

Changes

Use pnpm run build instead of pnpm astro build

How To Test

I have identified that this command is causing the issue.
To verify, please add an action to upload the dist directory.

Screenshots (if applicable)

Before:
Image

After:
image

Additional Notes

I am not sure how repo maintainers able to make it work in Vercel, but the file is not there when I tried this.

I am sure I have executed pnpm install --frozen-lockfile, pnpm astro check before pnpm astro build.

Fix `/pagefind/pagefind.js` 404 issue
@vercel
Copy link

vercel bot commented Jan 8, 2026

@JoeyC-Dev is attempting to deploy a commit to the zephyirdgmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@StrMnL
Copy link

StrMnL commented Jan 23, 2026

That's it.
While pnpm build or pnpm run build uses the custom script defined in packages.json, which will execute both astro build and pagefind --site dist, pnpm astro build only runs astro and cause this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Pages generated by GitHub Action resulting in missing /pagefind/pagefind.js 使用Cloudflare Workers部署,Pagefind功能无法使用。

2 participants