Skip to main content

Environment Variables (client)

Create .env.local in client/ with the following variables as needed.

NextAuth

NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_long_random_string

API

NEXT_PUBLIC_API_BASE_URL=https://api.posthoot.com

Analytics/Telemetry (optional)

NEXT_PUBLIC_SENTRY_DSN=
NEXT_PUBLIC_POSTHOG_KEY=
NEXT_PUBLIC_POSTHOG_HOST=

Tips

  • Variables prefixed with NEXT_PUBLIC_ are exposed to the browser.
  • Restart the dev server after changing env vars.