detect if dev or production and use correct keys.