Professional portfolio site with a React frontend, Express backend, and server-side AI chat endpoint.
The assistant reads AI provider keys only from server environment variables.
- Copy
.env.exampleto.envfor local development. - Set
GROQ_API_KEYto the active Groq key. - Keep provider keys out of source control and public client code.
For production, configure the same variables in the deployment provider.
When a Groq key changes, update the deployment environment instead of editing source files.
vercel env rm GROQ_API_KEY production --yes
vercel env add GROQ_API_KEY production
vercel --prod --yesAfter deployment, test /api/chat with a professional portfolio question and confirm the response is generated successfully.