Skip to content

Instantly share code, notes, and snippets.

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 = '';
ENV.production = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment