From f62d069a1c18cd406d6283c4e1bd3616629b42fc Mon Sep 17 00:00:00 2001 From: bskthefirst Date: Mon, 11 May 2026 21:47:30 -0500 Subject: [PATCH] fix: allow /embed/ and /.well-known/ routes on self-hosted instances - Prevents proxy from redirecting /embed/* and /.well-known/* to /login on non-cap.so deployments (self-hosted) - Fixes #1768 and #1774 This fix was generated with AI assistance (Codex/Hermes) and manually reviewed. --- apps/web/proxy.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/proxy.ts b/apps/web/proxy.ts index ec57ff223e..850a428523 100644 --- a/apps/web/proxy.ts +++ b/apps/web/proxy.ts @@ -49,7 +49,9 @@ export async function proxy(request: NextRequest) { path.startsWith("/invite") || path.startsWith("/self-hosting") || path.startsWith("/terms") || - path.startsWith("/verify-otp") + path.startsWith("/verify-otp") || + path.startsWith("/embed/") || + path.startsWith("/.well-known/") ) && process.env.NODE_ENV !== "development" )