old_contents: /* config for different envs */
  import { ICON_CMD } from './assets'
  
  const getGraphQLEndpoint = () => {
    switch (process.env.NODE_ENV) {
      case 'production':
        return 'https://api.coderplanets.com/graphiql'
  
      case 'dev':
        return 'https://devapi.coderplanets.com/graphiql'
  
      case 'ci':
        return 'http://localhost:4001/graphiql'
  
      default:
        // return 'https://api.coderplanets.com/graphiql'
        return 'http://localhost:4001/graphiql'
    }
  }
  
  export const GRAPHQL_ENDPOINT = getGraphQLEndpoint()
  
  export const SITE_URL = 'https://coderplanets.com'
  export const GITHUB_WEB_ADDR =
    'https://github.com/coderplanets/coderplanets_web'
  export const GITHUB_SERVER_ADDR =
    'https://github.com/coderplanets/coderplanets_server'
  
  export const API_SERVER_ADDR = 'http://api.coderplanets.com/graphiql'
  
  export const GITHUB_ME = 'https://github.com/mydearxym'
  export const GITHUB_CPS_TEAM = 'https://github.com/orgs/coderplanets/people'
  export const ISSUE_ADDR = `${GITHUB_WEB_ADDR}/issues`
  export const MENTION_USER_ADDR = 'https://coderplanets.com/users/'
  
  export const COMMUNITY_WIKI =
    'https://github.com/coderplanets/cps_wiki/blob/master'
  
  export const COMMUNITY_CHEATSHEET =
    'https://github.com/coderplanets/cps_cheatsheets/blob/master'
  
  export const DEFAULT_USER_AVATAR = `${ICON_CMD}/alien_user3.svg`
  
new_contents: /* config for different envs */
  import { ICON_CMD } from './assets'
  
  const getGraphQLEndpoint = () => {
    switch (process.env.NODE_ENV) {
      case 'production':
        return 'https://api.coderplanets.com/graphiql'
  
      case 'dev':
        return 'https://devapi.coderplanets.com/graphiql'
  
      case 'ci':
        return 'http://localhost:4001/graphiql'
  
      default:
        return 'https://api.coderplanets.com/graphiql'
      /* return 'http://localhost:4001/graphiql' */
    }
  }
  
  export const GRAPHQL_ENDPOINT = getGraphQLEndpoint()
  
  export const SITE_URL = 'https://coderplanets.com'
  export const GITHUB_WEB_ADDR =
    'https://github.com/coderplanets/coderplanets_web'
  export const GITHUB_SERVER_ADDR =
    'https://github.com/coderplanets/coderplanets_server'
  
  export const API_SERVER_ADDR = 'http://api.coderplanets.com/graphiql'
  
  export const GITHUB_ME = 'https://github.com/mydearxym'
  export const GITHUB_CPS_TEAM = 'https://github.com/orgs/coderplanets/people'
  export const ISSUE_ADDR = `${GITHUB_WEB_ADDR}/issues`
  export const MENTION_USER_ADDR = 'https://coderplanets.com/users/'
  
  export const COMMUNITY_WIKI =
    'https://github.com/coderplanets/cps_wiki/blob/master'
  
  export const COMMUNITY_CHEATSHEET =
    'https://github.com/coderplanets/cps_cheatsheets/blob/master'
  
  export const DEFAULT_USER_AVATAR = `${ICON_CMD}/alien_user3.svg`
  
subject: switch default with prod api