Skip to content

FD-773: render a password form for password-protected collections#3

Open
tomconroy wants to merge 2 commits into
mainfrom
fd-773-password-gate
Open

FD-773: render a password form for password-protected collections#3
tomconroy wants to merge 2 commits into
mainfrom
fd-773-password-gate

Conversation

@tomconroy

Copy link
Copy Markdown
Member

Catch FontduePasswordProtectedError in the font loader and render <NodePasswordForm> instead of a 404.

The root runWithPreview middleware already forwards the visitor's node-access token, and its no-store rewrite supersedes the route's cache headers, so no cache change is needed here.

Requires the FD-773 fontdue-js release — pair with the version bump. Backend: fontdue/fontage#1111.

FD-773

🤖 Generated with Claude Code

Catch FontduePasswordProtectedError in the loader and render <NodePasswordForm>
instead of a 404. The root runWithPreview middleware already forwards the
visitor's node-access token and its no-store rewrite supersedes the route's
cache headers, so no cache change is needed here.

Requires the FD-773 fontdue-js release; pair with the version bump.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 25, 2026

Copy link
Copy Markdown

Deploy Preview for fontdue-example-react-router failed.

Name Link
🔨 Latest commit 3b5ca0f
🔍 Latest deploy log https://app.netlify.com/projects/fontdue-example-react-router/deploys/6a3d35c2411e3a000851e2fa

Mount runWithFontdue (from fontdue-js/server/middleware) in the root-route
middleware in place of runWithPreview: it forwards the admin preview token AND
the visitor's per-collection node-access token into the ambient render context,
and forces a per-visitor response out of the CDN cache. runWithPreview now
forwards only the preview token, so the unlock needs runWithFontdue.

Requires the fontdue-js FD-773 release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant