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



10 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
Hey!
You were following this guide to setup Accelerate right?
https://www.prisma.io/docs/accelerate/getting-started#2-add-accelerate-to-your-application
Are your accelerate extension and prisma version the latest one?
I haven't seen other users report a similar error before. If you can give me a link to your repositoy then I can try to run it locally and see if I can reproduce it.
Apologies for delay in getting back to this thread
Getting started with Prisma Accelerate | Prisma Documentation
Learn how to get up and running with Prisma Accelerate.
Here is the git repository https://github.com/tachyon322/Prisma-issue
also i will send you my .env variables in dm
Thanks for sharing! It seems that repository is private
sorry, i opened it now