env variable not found
I tried to setup prisma accelerate and here it cant get the Database_url from .env file. Is there any solution you know?😢
here is my code, the .env file, and console error
6 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai
for a quick spin!ps. if i do this code from chat gpt when i put my api key directly everything works fine
Hmm, ideally env variables should be read fine.
Do you get this error only with Accelerate env variable or with all env variables?
yes! I tried this code with neon db variable and it works fine.
although despite the error with accelerate data still fetches