> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xem.email/llms.txt
> Use this file to discover all available pages before exploring further.

# Client Environment

> Environment variables used by the Posthoot client

# Environment Variables (client)

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

## NextAuth

```env theme={"dark"}
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_long_random_string
```

## API

```env theme={"dark"}
NEXT_PUBLIC_API_BASE_URL=https://api.posthoot.com
```

## Analytics/Telemetry (optional)

```env theme={"dark"}
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.
