Matt
Matt
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Matt on 5/21/2024 in #questions
Can anyone tell me how to use environment variables for different environments within T3 please?
I have .env which is working fine. I want to use .env.development for when I dev and .env.product when I've built and deployed. I can't see anywhere where this can be set, I can see using this the variables don't switch as I expect and simply just default to .env. I've attempted to follow the Next docs to no avail. Am I missing something somewhere?
3 replies