P
Prisma•3mo ago
Mike Oxmall

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
No description
No description
No description
10 Replies
Prisma AI Help
Prisma AI Help•3mo ago
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!
Mike Oxmall
Mike OxmallOP•3mo ago
ps. if i do this code from chat gpt when i put my api key directly everything works fine
No description
Nurul
Nurul•3mo ago
Hmm, ideally env variables should be read fine. Do you get this error only with Accelerate env variable or with all env variables?
Mike Oxmall
Mike OxmallOP•3mo ago
yes! I tried this code with neon db variable and it works fine.
Mike Oxmall
Mike OxmallOP•3mo ago
No description
Mike Oxmall
Mike OxmallOP•3mo ago
although despite the error with accelerate data still fetches
Nurul
Nurul•3mo ago
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.
Mike Oxmall
Mike OxmallOP•3mo ago
Here is the git repository https://github.com/tachyon322/Prisma-issue also i will send you my .env variables in dm
Nurul
Nurul•3mo ago
Thanks for sharing! It seems that repository is private
Mike Oxmall
Mike OxmallOP•3mo ago
sorry, i opened it now

Did you find this page helpful?