Can't access .env.development.local with process.env
Unanswered
Basenji posted this in #help-forum
BasenjiOP
I've been trying to set up vercel postgres with drizzle ORM and I pulled the .env.development.local file using the Vercel CLI, I've installed the
If I replace the process.env.POSTGRES_URL! with the actual string url, everything works fine, so I'm sure I set up the DB connection properly, it's just the process.env that is not working, any ideas ?
@next/env and also defined the config file and everything, but I just can't seem to get it working If I replace the process.env.POSTGRES_URL! with the actual string url, everything works fine, so I'm sure I set up the DB connection properly, it's just the process.env that is not working, any ideas ?
2 Replies
BasenjiOP
I just created an
so I guess my question is, why is it not pulling the information from .env.development.local? do I need to change my config or something?
.env.production.local file and copied the same settings, now it's working,so I guess my question is, why is it not pulling the information from .env.development.local? do I need to change my config or something?
BasenjiOP
How can I make my project use
.env.local.development instead of .env.local.production ?