Environment Variables¶
Configuration for external services and features.
Required Variables¶
None — the site runs without any environment variables.
Optional Variables¶
Unsplash Integration¶
For downloading Unsplash images and API access.
Database¶
For view counts and analytics (optional).
OpenAI¶
For AI chatbot features (optional).
GitHub¶
For fetching GitHub repository data in the open source section.
Gumroad¶
For product listing on the homepage.
Spotify¶
SPOTIFY_CLIENT_ID=your_client_id
SPOTIFY_CLIENT_SECRET=your_client_secret
SPOTIFY_REFRESH_TOKEN=your_refresh_token
For the "Now Playing" section on the home and about pages. Run node scripts/setup/spotify-token.js to obtain the refresh token.
Dashboard¶
For accessing the private /dashboard page (chatbot analytics). Generate with openssl rand -hex 32.
Email (Contact Form)¶
For the contact form email delivery.
Local Development¶
Create .env.local:
Production¶
Set environment variables in your deployment platform (Vercel, etc.).
Security¶
- Never commit
.env.localor.envfiles - Use different keys for development and production
- Rotate keys regularly
- Use secret management in production