github / codespaces-nextjs

124 stars 156 forks source link

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

Closed canedy closed 1 year ago

canedy commented 1 year ago

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();