setup project to have dev and production enviroment
Unanswered
Japanese jack mackerel posted this in #help-forum
Japanese jack mackerelOP
Whats the easiest way to run my project for certain variables be set to one thing in dev mode but something else for the production build. rn all i can think of is using an env variable but is there an easier way for that?
2 Replies
@Japanese jack mackerel Whats the easiest way to run my project for certain variables be set to one thing in dev mode but something else for the production build. rn all i can think of is using an env variable but is there an easier way for that?
Polish Lowland Sheepdog
I don't think I understand, but from what I do just literally use different code for each part. Should only be 1 or so lines
@Japanese jack mackerel Whats the easiest way to run my project for certain variables be set to one thing in dev mode but something else for the production build. rn all i can think of is using an env variable but is there an easier way for that?
Chum salmon
Using .env for production and .env.local isn't easy enough? Vercel automatically understands which one to use when you publish it. I think it's quite easy considering you usually don't have a lot of code in those files unless you're working on a gigantic project.