.env.local Overview#
MonoForge runs completely offline out of the box with mock data for local profile editing. If you wish to enable direct GitHub 1-click push or sync capabilities, configure an .env.local file in the project root:
BASH
Configuring GitHub OAuth (Optional)#
To enable authenticated 1-click GitHub commits to your profile repository:
- Navigate to GitHub Settings > Developer Settings > OAuth Apps > New OAuth App:
- Application Name:
MonoForge Local Dev - Homepage URL:
http://localhost:3000 - Authorization callback URL:
http://localhost:3000/api/auth/callback/github
- Click Register application.
- Generate a new client secret and copy both Client ID and Client Secret.
- Add them to your
.env.local:
INI
Environment Variables Reference#
| Variable | Required | Description | Default |
|---|---|---|---|
GITHUB_ID | No | GitHub OAuth Client ID for repository sync | "" |
GITHUB_SECRET | No | GitHub OAuth Client Secret for repository sync | "" |
NEXTAUTH_URL | No | Canonical URL of the application | http://localhost:3000 |
NEXTAUTH_SECRET | No | Cryptographic salt for session encryption | "" |
NEXT_PUBLIC_APP_URL | No | Public production hostname for asset generation | https://monoforge-studio.vercel.app |
