Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Access configurable values in emberjs ember-cli
# app/adapters/application.js
import DS from 'ember-data';
import config from '../config/environment';
export default DS.ActiveModelAdapter.extend({
host: config.apiUrl
});
if (environment === 'production') {
ENV.apiUrl = 'http://cabbyguide.herokuapp.com/api/v1';
ENV.production = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment