add config file to change API endpoint in production and development mode