Skip to content

fix(web): pagefind.js missing on docs site#36497

Open
ShiftWatchOut wants to merge 1 commit into
anomalyco:devfrom
ShiftWatchOut:fix-web-pagefind-missing
Open

fix(web): pagefind.js missing on docs site#36497
ShiftWatchOut wants to merge 1 commit into
anomalyco:devfrom
ShiftWatchOut:fix-web-pagefind-missing

Conversation

@ShiftWatchOut

@ShiftWatchOut ShiftWatchOut commented Jul 12, 2026

Copy link
Copy Markdown

Issue for this PR

#36388
#17343
#26157 (comment)

Closes #36388

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Add routes.extend.exclude to the Cloudflare adapter configuration to explicitly exclude pagefind assets from Worker routing:

  adapter: cloudflare({
    imageService: "passthrough",
+   routes: {
+     extend: {
+       exclude: [{ pattern: "/docs/pagefind/*" }],
+     },
+   },
  }),

After fix the generated _routes.json exclude list now includes pagefind:

{
  "include": ["/*"],
  "exclude": ["/docs", "/docs/_astro/*", ..., "/docs/pagefind/*"]
}

How did you verify your code works?

I deployed a fixed version on CF, docs searching works fine, maybe more test needed.
doc site for testing

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jul 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added needs:issue and removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Jul 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

Pagefind search returns 404 when Accept-Language indicates French (or likely other non-English locales) Body:

1 participant