text: require('dotenv').config();
  const contentfulManagement = require('contentful-management');
  
  module.exports = () => {
    const contentfulClient = contentfulManagement.createClient({
      accessToken: process.env.CONTENTFUL_MANAGEMENT_API_ACCESS_TOKEN,
    });
  
    return contentfulClient
      .getSpace(process.env.CONTENTFUL_SPACE_ID)
      .then(space => space.getEnvironment('master'));
  };
  