From a672891b7ea41be6c0c1d165d2deb46799769065 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Thu, 14 Apr 2016 10:22:17 +0200 Subject: [PATCH] Update fingerprint prepended URL --- ember-cli-build.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/ember-cli-build.js b/ember-cli-build.js index 597d63b6..43531987 100644 --- a/ember-cli-build.js +++ b/ember-cli-build.js @@ -6,20 +6,17 @@ module.exports = function(defaults) { var fingerprint, assetsHost; + // FIXME: this should not have dev hardcoded + var s3Bucket = require('./config/deploy')('dev').s3.bucket; + if (process.env.DISABLE_FINGERPRINTS) { fingerprint = false; } else { fingerprint = { exclude: ['images/emoji'], - extensions: ['js', 'css', 'png', 'jpg', 'gif', 'map', 'svg'] + extensions: ['js', 'css', 'png', 'jpg', 'gif', 'map', 'svg'], + prepend: '//s3.amazonaws.com/' + s3Bucket + '/', }; - - if (assetsHost = process.env.ASSETS_HOST) { - if (assetsHost.substr(-1) !== '/') { - assetsHost = assetsHost + '/' - } - fingerprint.prepend = assetsHost - } } var app = new EmberApp({