import { Development } from './development';
import { Local }       from './local';
import { Production }  from './production';
import { Staging }     from './staging';

const CONFIG = {
  development: Development,
  local: Local,
  production: Production,
  staging: Staging
};

const ENVIRONMENTS = {
  'pokedextracker.com': 'production',
  'staging.pokedextracker.com': 'staging'
};

const environment = process.env.NODE_ENV || ENVIRONMENTS[window.location.hostname] || 'development';

export const Config = CONFIG[environment];

@@ -403,32 +403,8 @@
 nt =
- process.env.NODE_ENV %7C%7C
  ENV
@@ -441,16 +441,40 @@
 name%5D %7C%7C
+ process.env.NODE_ENV %7C%7C
  'develo

change priority of environment (#366)