P
Prisma•2d 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
6 Replies
Prisma AI Help
Prisma AI Help•2d 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•2d ago
ps. if i do this code from chat gpt when i put my api key directly everything works fine
No description
Nurul
Nurul•2d 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•2d ago
yes! I tried this code with neon db variable and it works fine.
Mike Oxmall
Mike OxmallOP•2d ago
No description
Mike Oxmall
Mike OxmallOP•2d ago
although despite the error with accelerate data still fetches

Did you find this page helpful?