content: import React from 'react';
  import database from './database/index.js';
  // import gutil from 'gulp-util';
  import content from '../projects/wwf/content/content.json'
  import prodContent from '../projects/wwf/content/productionContent.json'
  
  export const setupConfigs = (env, activeProject, callback) => {
    const config = {
      urls: {}
    };
    if (env === 'development') {
      callback(content)
    }
  
    if (env === 'production') {
      callback(prodContent);
    }
  }
  
  // database.fetchContentProd(activeProject, (err, data) => {
  //   // delete unwanted mongo db properties
  //   gutil.log('VERSION PRODUCTION', data.projectVersion)
  //   const currentProjectVersion = data.projectVersion;
  //   delete data._id;
  //   delete data.__v;
  //   config.projectVersion = currentProjectVersion;
  //   config.content = data;
  //   config.urls.cdnUrl = 'https://d3hc4gv509jw9l.cloudfront.net/projects/' + activeProject +  '_v' + currentProjectVersion + '/';
  //   config.urls.cdnImageBase = 'https://d3hc4gv509jw9l.cloudfront.net/projects/' + activeProject +  '_v' + currentProjectVersion + '/images/';
  //   config.bundleCssUrl = 'https://d3hc4gv509jw9l.cloudfront.net/projects/' + activeProject + '_v' + currentProjectVersion + '/index.css';
  //   config.urls.bundleUrl = 'https://d3hc4gv509jw9l.cloudfront.net/projects/' + activeProject + '_v' + currentProjectVersion + '/bundle.js';
  //   callback(prodContent);
  // });
  
  // database.fetchContentDev(activeProject, (err, data) => {
  //   if (err) { throw err; }
  //   // delete unwanted mongo db properties
  //   delete data._id;
  //   delete data.__v;
  //   console.log(data)
  //   config.content = data;
  //   config.urls.cdnUrl = 'http://localhost:8080/projects/' + activeProject + '/';
  //   config.urls.cdnImageBase = 'http://localhost:8080/projects/' + activeProject + '/images/';
  //   config.urls.bundleUrl = 'http://localhost:8080/bundle.js/'
  //   callback(config);
  // });
  