#How can I change my local env to point to prod?

1 messages · Page 1 of 1 (latest)

north relic
#

Need to load some data from prod

waxen crag
#

Some CLI commands like npx convex run and npx convex import take a --prod flag, it sounds like that's what you want here?

#

Or do you want to set your local dev to be live updating prod?

north relic
waxen crag
#

Ah got it! Then you want to change the environment variable used to construct you Convex client

#

Typically this is NEXT_PUBLIC_CONVEX_URL or VITE_CONVEX_URL or similar

north relic
#

yes, of course, okay got it thank you 🙂

#

hmmm

#

my local .env is pointed to prod

#

I have a page that renders the CSS based on the db

#

for some reason its not loading on dev

waxen crag
#

usually the .env.local file is used in dev and .env is just used in prod.

north relic
#

hmm I don't have one of these