PLEASE help us help you by writing a good post!
- We need to know your netlify site name. Example:
gifted-antelope-58b104.netlify.app
singular-mandazi-32cf3c - DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
https://singular-mandazi-32cf3c.netlify.app](https://singular-mandazi-32cf3c.netlify.app/
No error message other than the KEY is not defined - Build problems? Link or paste the FULL build log & build settings screenshot
None - Did you try Ask Netlify, our generative AI chatbot, before posting? It pulls info from [Support Guides]
Yes and I found now answer
(Support Guides - Or, how to find answers for frequent questions!) and recent solved forums posts.
The better the post - the faster the answer.
I tried to get the environment variable set in the Netlify page for the site and did not get the environment variable. This is a web app using javascript.
The environment variable was read with
//const { OPENAI_API_KEY } = process.env;
// also tried process.env.KEY
Then through another Discord channel
const OPENAI_API_KEY = import.meta.env.OPENAI_API_KEY;
// The helper was using typescipt
A console.log on the key reviels nothing.