Go HTTP handler redirecting root path and policy pages to marketing site for Paddle checkout domain verification. Reuse for compliance redirects.
// Source: https://github.com/superbasedapp/observer | License: Apache-2.0 | Copyright 2026 Gaja AI // Provided via justclaw.it.com; keep this notice with the code. // Package api: rootredirect.go answers the bare "/" path — and the four // policy/pricing paths a checkout-domain reviewer fetches by convention — // on this server's own origin with a redirect to the marketing site. // // Paddle's checkout-domain review fetches the domain root and, live-observed // 2026-09-13 against cloud.superbased.app, treats a 404 there as "your // website is offline" and fails the review — even though /portal/, // /portal/billing, /healthz and /v1/* all already answer correctly. The // marketing site (superbased.app) carries the pricing/terms/privacy/refund // pages a checkout-domain reviewer looks for, ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key