0
我想在ember-cli中设置cdn url,但是我希望实际的url在不同环境之间有所不同。变量ember-cli资产指纹预存值
// ember-cli-build.js
var app = new EmberApp({
fingerprint: {
prepend: 'https://subdomain.cloudfront.net/' // want this to be variable between envs
// prepend: 'https://' + process.env.ASSET_HOST + '/' <- this is what I want
}
});
我尝试添加一个环境变量process.env
,但这似乎并不存在,如果我访问它config/environment.js
它的方式。
有没有办法在我的ember-cli-build.js
文件中有这样的变量?