const stage = process . env . STAGE || "staging" ; const config = { baseURL : 'https://gateway.marvel.com/v1/public' , stage , engine : { schemaTag : process . env . ENGINE_TAG || 'staging' , apiKey : process . env . ENGINE_API_KEY || 'service:marvelQL:31heDXzZ0JWmMz7L4zCuug' , } , production : { MARVEL_API_KEY : process . env . MARVEL_API_KEY , MARVEL_PRIVATE_KEY : process . env . MARVEL_PRIVATE_KEY , } , staging : { MARVEL_API_KEY : process . env . MARVEL_API_KEY_STAGING || 'ba0613cb148841f5091cb0075b5076d2' , MARVEL_PRIVATE_KEY : process . env . MARVEL_PRIVATE_KEY_STAGING || '140a52c97a8ef92f028d89a543e83d711f9e80a0' } } ; export default { ... config , ... ( config [ stage ] || { } ) } ;