From 9ceb8731d3b8336980a2a11457f815c038ef4ed0 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 24 Dec 2025 21:20:06 +0000 Subject: [PATCH] chore: clarify gmail serve path --- src/hooks/gmail.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hooks/gmail.ts b/src/hooks/gmail.ts index 84125a3ab..46ab27e53 100644 --- a/src/hooks/gmail.ts +++ b/src/hooks/gmail.ts @@ -80,6 +80,9 @@ export function normalizeHooksPath(raw?: string): string { export function normalizeServePath(raw?: string): string { const base = raw?.trim() || DEFAULT_GMAIL_SERVE_PATH; + // Tailscale funnel/serve strips the set-path prefix before proxying. + // To accept requests at / externally, gog must listen on "/". + if (base === "/") return "/"; const withSlash = base.startsWith("/") ? base : `/${base}`; return withSlash.replace(/\/+$/, ""); }