Skip to content

docs: add Cloudflare Workers reverse proxy tutorial - #5237

Closed
fern-support wants to merge 1 commit into
mainfrom
devin/1777483781-cloudflare-reverse-proxy-tutorial
Closed

fern-support wants to merge 1 commit into
mainfrom
devin/1777483781-cloudflare-reverse-proxy-tutorial

Conversation

@fern-support

Copy link
Copy Markdown
Contributor

Summary

Adds a "Reverse proxy" section to the existing "Bring your custom domain" page with a step-by-step Cloudflare Workers tutorial. The tutorial covers:

  • Updating docs.yml with a custom domain
  • Creating a Cloudflare Worker that proxies requests to https://app.buildwithfern.com with the x-fern-host header
  • Adding a custom domain to the Worker
  • Verifying the setup

Also adds a cross-link from the page intro to the new reverse proxy section.

Review & Testing Checklist for Human

  • Verify the Worker code snippet works end-to-end (create a test Worker, set x-fern-host to a real docs site, confirm pages load)
  • Confirm the Cloudflare dashboard navigation instructions match the current Cloudflare UI (Workers & Pages > Create, Settings > Domains & Routes)
  • Review the page preview to ensure the Steps render correctly within the page structure

Notes

The reverse proxy approach is an alternative to the DNS-based setup methods already documented. The Worker code uses redirect: "manual" to preserve redirect responses from Fern rather than following them server-side.

Link to Devin session: https://app.devin.ai/sessions/9c1ed5c09c9f4e8c9f0266c56e0c698f
Requested by: @fern-support

…page

Co-Authored-By: will.kendall@buildwithfern.com <wpk235@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions

Copy link
Copy Markdown
Contributor

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