Answers for "how to swiitch between .env development and production code"

0

how to swiitch between .env development and production code

// Constants.jsconst prod = { url: {  API_URL: ‘https://myapp.herokuapp.com',  API_URL_USERS: ‘https://myapp.herokuapp.com/users'}};const dev = { url: {  API_URL: ‘http://localhost:3000' }};export const config = process.env.NODE_ENV === ‘development’ ? dev : prod;
Posted by: Guest on October-19-2020

Code answers related to "how to swiitch between .env development and production code"

Browse Popular Code Answers by Language