/* globals ENV, VERSION */
var Config = {
  version: VERSION,
  websiteUrl: 'http://localhost:4000',
  functionsUrl: 'http://localhost:5000',
  helpUrl: 'https://help.briskine.com/',
  dashboardTarget: 'gt-dashboard',

  eventDestroy: 'briskine-destroy',
  eventStatus: 'briskine-status',
  eventSandboxCompile: 'briskine-template-compile',
  eventShowDialog: 'briskine-dialog',
  eventInsertTemplate: 'briskine-insert-template',
}

// firebase staging
if (ENV === 'staging') {
  Config = Object.assign(Config, {
    functionsUrl: 'https://staging.briskine.com'
  })
}

if (ENV === 'production') {
  Config = Object.assign(Config, {
    websiteUrl: 'https://www.briskine.com',
    functionsUrl: 'https://app.briskine.com'
  })
}

export default Config
