how to swiitch between .env development and production code code example
Example: 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;