文档

Connect your services

Configure accounts, billing, email and optional analytics.

Accounts and email

Set TEMPLATE_MODE=live, NEXTAUTH_SECRET and your exact NEXTAUTH_URL. Accounts and payments run on Cloudflare: the database is D1 (binding DB), and email links and sign-in codes are delivered through Cloudflare Email Service once your sending domain is onboarded.

Stripe

Set BILLING_PROVIDER=stripe, the test secret, webhook secret and Pro/Scale recurring price IDs. Forward Stripe events to /api/webhooks/stripe. Enable the customer portal. Checkout and portal creation require same-origin POST requests.

TideStat

Sign in at tidestat.yololab.cc/account.html, add your website and copy its public ID. Set NEXT_PUBLIC_ANALYTICS_PROVIDER=tidestat and NEXT_PUBLIC_TIDESTAT_SITE_ID, then rebuild. No Worker or database setup is needed for the hosted analytics service. Grant analytics consent on your website and verify a new pageview in TideStat Website setup. See docs/TIDESTAT.md for Agent and manual instructions.