Step 3
Step 3: Configure Environment Variables
Set up the environment variables for both the backend and frontend.
Backend (.env)
Create a .env
file in the backend
directory and add the following:
OPENAI_API_KEY=your_openai_api_key
PORT=3001
Frontend (.env.local)
Create a .env.local
file in the frontend
directory and add the following:
NEXT_PUBLIC_API_URL=http://localhost:3001
Last updated