Integrations
Setup order, env rules, and operational boundaries for Clerk, Convex, Polar, Sanity, Resend, PostHog, Vercel, and admin access.
Beginner runtime configuration starts in .env.example, production handoff values live in .env.production.example, and optional/internal knobs live in .env.advanced.example.
.varel/project.json controls whether setup guidance targets local-first local/development only or launch-ready local/development plus production, with preview optional.
Clerk owns identity; use development instance keys locally and production instance keys for launch.
Product IDs, webhook secrets, Convex URLs, and Vercel tokens must stay in scoped env, never in code.
Polar sandbox belongs in local/preview env; Polar production belongs only in production env.
Polar debugging starts from official docs plus pnpm polar:doctor when checkout, benefits, portal access, or GitHub grants are involved.
Sanity owns public content and the blog. Use hosted Studio, source-controlled schemas, Sanity MCP/CLI, and official Sanity skills; install those skills globally rather than committing them to your repo.
Cal.com powers internal consulting booking links and future customer scheduling guidance; use OAuth for customers and never ask end users for API keys.
Resend is optional locally and skips safely when sender env is missing.
PostHog stays optional locally and initializes only when the project token is present.
ADMIN_EMAILS enables the internal /admin operator dashboard for trusted emails only.