const isDev = process . env . NODE_ENV === 'development' ; const isLocal = process . env . SERVER_LOCATION === 'local' ; const apiEndpoints = { dev : '/api' , prodLocal : 'http://localhost:8000' , prodOnline : 'https://glacial-shore-18891.herokuapp.com' } ; const prodEndpoint = isLocal ? apiEndpoints . prodLocal : apiEndpoints . prodOnline ; export const config = { themoviedb : { apiKey : '737d47b7285bab76358e9cbe46b76b35' , endpoint : 'https://api.themoviedb.org/3' } , api : isDev ? apiEndpoints . dev : prodEndpoint } ;