Skip to content

docs: HonoX on Cloudflare Pages setup guide (#16)#47

Open
tusharpandey13 wants to merge 1 commit into
auth0:mainfrom
tusharpandey13:docs/honox-cloudflare-pages
Open

docs: HonoX on Cloudflare Pages setup guide (#16)#47
tusharpandey13 wants to merge 1 commit into
auth0:mainfrom
tusharpandey13:docs/honox-cloudflare-pages

Conversation

@tusharpandey13

Copy link
Copy Markdown
Contributor

Summary

Addresses #16 — undocumented setup for HonoX projects deployed on Cloudflare Pages.

Adds a Troubleshooting subsection covering:

  • Registering the auth middleware in app/routes/_middleware.ts (not server.ts), with the createRoute wrapper pattern.
  • Accessing Cloudflare bindings via c.env, plus a wrangler.toml binding example.
  • Clarifies the SDK already reads env through Hono's env(c) adapter, so process.env is not required by the SDK itself.

Docs-only change. API names verified against src/index.ts (auth0, OIDCEnv).

Test plan

  • Docs-only; no code paths touched

🤖 Generated with Claude Code

Document middleware registration in app/routes/_middleware.ts with the
createRoute wrapper and c.env access pattern for Cloudflare bindings.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@tusharpandey13 tusharpandey13 force-pushed the docs/honox-cloudflare-pages branch from dcdfb5f to b325786 Compare June 29, 2026 06:45
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