Skip to content

Conversation

markphelps
Copy link
Contributor

Summary

  • Fixed infinite redirect loop where visiting docs.flipt.io was redirecting to /v1/v2
  • Updated worker to properly proxy requests to the Mintlify backend (flipt.mintlify.app)
  • Ensured both versioned paths and static assets are correctly proxied

Problem

The Cloudflare worker was using fetch(request) to proxy versioned content, which was hitting the same worker again instead of the actual Mintlify backend, causing a redirect loop.

Solution

Modified the worker to explicitly proxy requests to flipt.mintlify.app for:

  • Versioned paths (/v1/* and /v2/*)
  • Static assets (favicon, logos, etc.)

This ensures the worker correctly handles redirects and proxying without creating loops.

- Update worker to proxy requests to flipt.mintlify.app backend
- Fix redirect loop issue where root was redirecting to /v1/v2
- Ensure versioned paths and static assets proxy to correct backend

Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
@markphelps markphelps requested a review from a team as a code owner September 28, 2025 17:06
@markphelps markphelps merged commit 9e5bc0d into main Sep 28, 2025
3 of 4 checks passed
@markphelps markphelps deleted the fix-cloudflare-redirect-loop branch September 28, 2025 17:07
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