Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/jacobsamo/buzztrip/llms.txt

Use this file to discover all available pages before exploring further.

BuzzTrip requires environment variables for authentication (Clerk), real-time data (Convex), map providers (Google Maps and Mapbox), transactional email (Resend), and billing (Polar). Optional monitoring variables enable error tracking via Sentry and product analytics via PostHog. Variables prefixed with NEXT_PUBLIC_ are exposed to the browser; all others are server-only.
Never commit your .env.local file. Add it to .gitignore — it is already excluded in the BuzzTrip repository. Exposing CLERK_SECRET_KEY or RESEND_API_KEY in a public repository will compromise your account.

Required Variables

NEXT_PUBLIC_CONVEX_URL
string
required
Your Convex deployment URL. Exposed to the browser. Found in the Convex dashboard under your deployment’s Settings tab.Example: https://happy-animal-123.convex.cloud

Optional Variables

These variables are not required to run BuzzTrip but are recommended for production deployments.

Monitoring & Analytics

NEXT_PUBLIC_SENTRY_DSN
string
Sentry Data Source Name for client-side error tracking. Found in your Sentry project under Settings → Client Keys (DSN).Example: https://abc123@o123456.ingest.sentry.io/789
SENTRY_AUTH_TOKEN
string
Sentry authentication token used for uploading source maps during the build. Generate one in Sentry under Settings → Auth Tokens. Server-side only.
SENTRY_ORG
string
Your Sentry organization slug. Found in your Sentry URL: https://sentry.io/organizations/<slug>/.
SENTRY_PROJECT
string
Your Sentry project slug. Found in Sentry under Settings → Projects.
NEXT_PUBLIC_POSTHOG_KEY
string
PostHog project API key for product analytics. Found in your PostHog project under Settings → Project API key.Example: phc_...
NEXT_PUBLIC_POSTHOG_HOST
string
PostHog ingestion host. Use the default unless you are running a self-hosted PostHog instance.Default: https://app.posthog.com

Convex Dashboard Variables

These variables are set in the Convex dashboard under Settings → Environment Variables — not in .env.local. They are available to your Convex functions at runtime but are never exposed to the browser.
CLERK_WEBHOOK_SECRET
string
required
The Svix webhook signing secret from your Clerk dashboard. Used by the /clerk-users-webhook HTTP action to verify that incoming requests genuinely originate from Clerk.See the Webhooks page for full setup instructions.Example: whsec_...

.env.local Template

Copy this template into apps/web/.env.local and fill in your values:
apps/web/.env.local
# Convex
NEXT_PUBLIC_CONVEX_URL=https://your-deployment.convex.cloud

# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_...
CLERK_SECRET_KEY=sk_test_...
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL=/app
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL=/app

# Google Maps
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=AIza...
NEXT_PUBLIC_GOOGLE_MAPS_MAPID=your-map-id

# Mapbox
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=pk.eyJ1...

# Email
RESEND_API_KEY=re_...

# Billing
POLAR_ACCESS_TOKEN=polar_...

# Optional: Monitoring
# NEXT_PUBLIC_SENTRY_DSN=https://...
# SENTRY_AUTH_TOKEN=sntrys_...
# SENTRY_ORG=your-org
# SENTRY_PROJECT=your-project
# NEXT_PUBLIC_POSTHOG_KEY=phc_...
# NEXT_PUBLIC_POSTHOG_HOST=https://app.posthog.com
CLERK_WEBHOOK_SECRET is intentionally omitted from this template — it is set in the Convex dashboard, not in your local environment file.

Build docs developers (and LLMs) love