Skip to content

Commit b7b21bf

Browse files
authored
Merge pull request #567 from Gaurav0/fix_canary_build
Fix canary build
2 parents 53f8dfb + e45379e commit b7b21bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ember-cli-build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ module.exports = function(defaults) {
1010
var fs = require('fs');
1111

1212
var env = EmberApp.env();
13+
var deployTarget = process.env.DEPLOY_TARGET;
1314
var isProductionLikeBuild = ['production', 'staging'].indexOf(env) > -1;
1415
var isFastboot = process.env.EMBER_CLI_FASTBOOT;
1516
var prepend = null;
1617

1718
if(isProductionLikeBuild) {
18-
prepend = env === 'production' ? (process.env.TWIDDLE_ASSET_HOST || '//assets.ember-twiddle.com/') : '//canary-assets.ember-twiddle.com/';
19+
prepend = deployTarget === 'production' ? (process.env.TWIDDLE_ASSET_HOST || '//assets.ember-twiddle.com/') : '//canary-assets.ember-twiddle.com/';
1920
}
2021

2122
var blueprintsCode = getEmberCLIBlueprints();

0 commit comments

Comments
 (0)