Migrate website to Nextra v4#576
Conversation
|
@FrancoKaddour is attempting to deploy a commit to the David Sancho's projects Team on Vercel. A member of the Team first needs to authorize it. |
| "scripts": { | ||
| "dev": "next dev -p 3456", | ||
| "build": "next build", | ||
| "postbuild": "pagefind --site .next/server/app --output-path public/_pagefind", |
There was a problem hiding this comment.
I haven't checked nextra recently, but what's is the pagefind? 🤔
There was a problem hiding this comment.
Pagefind is a static search library that indexes the built HTML output and provides client-side search with no server required. Nextra v4 dropped the built-in FlexSearch integration, so pagefind is the recommended replacement — it runs as a postbuild step and generates the search index from .next/server/app.
That said, the client-side integration (the search UI component) is still pending — I noted it in the PR description. The postbuild script is there but the search won't be functional until that part is wired up. Happy to follow up on that in a separate PR if you want to keep this one focused on the migration itself.
There was a problem hiding this comment.
That's really nice, wanna do the search in a separate PR entirely?
There was a problem hiding this comment.
Absolutely, makes more sense to keep this PR focused on the migration. I'll open a follow-up for the Pagefind client integration once this lands.
|
Thanks for taking the time, good update |
|
FYI — the CI failure is in demo/melange/build.mjs, which can't find the esbuild package. That's unrelated to the website migration — we didn't touch anything outside packages/website/. Might be a pre-existing issue with the demo build in CI. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Picks up #537.
Main changes:
Still pending: replacing the custom FlexSearch with Pagefind's client integration. Happy to continue on that in a follow-up if useful.