github / codespaces-nextjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api key won't work the way it's defined.

canedy opened this issue · comments

It works if I hard card key, but I'm not sure it's pulling the process.env.OPENAI_API_KEY. Do you need to add this comment for copilot to build?

// import process.env.OPENAI_API_KEY from the .env file
require('dotenv').config();