chore: add gmail hook setup notes

This commit is contained in:
Peter Steinberger
2025-12-24 21:20:10 +00:00
parent 9ceb8731d3
commit 009fbeb543
2 changed files with 2 additions and 0 deletions

View File

@@ -114,6 +114,7 @@ export async function runGmailSetup(opts: GmailSetupOptions) {
opts.project ??
parsedTopic?.projectId ??
(await resolveProjectIdFromGogCredentials());
// Gmail watch requires the Pub/Sub topic to live in the OAuth client project.
if (!projectId) {
throw new Error(
"GCP project id required (use --project or ensure gog credentials are available)",

View File

@@ -172,6 +172,7 @@ export async function ensureTailscaleEndpoint(params: {
}
const baseUrl = `https://${dnsName}${pathArg}`;
// Funnel/serve strips pathArg before proxying; keep it only in the public URL.
return params.token ? `${baseUrl}?token=${params.token}` : baseUrl;
}