ASSET_HOST is wrong env variable. Fix to CDN_HOST (#6372)

lolsob-rspec
Eugen Rochko 2018-01-29 01:06:39 +01:00 committed by GitHub
parent 6278ffdba3
commit 9c212f0f28
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ function formatPublicPath(host = '', path = '') {
const output = {
path: resolve('public', settings.public_output_path),
publicPath: formatPublicPath(env.ASSET_HOST, settings.public_output_path),
publicPath: formatPublicPath(env.CDN_HOST, settings.public_output_path),
};
module.exports = {

View File

@ -2,7 +2,7 @@
module PremailerWebpackStrategy
def load(url)
asset_host = ENV['ASSET_HOST'] || ENV['WEB_DOMAIN'] || ENV['LOCAL_DOMAIN']
asset_host = ENV['CDN_HOST'] || ENV['WEB_DOMAIN'] || ENV['LOCAL_DOMAIN']
if Webpacker.dev_server.running?
asset_host = "#{Webpacker.dev_server.protocol}://#{Webpacker.dev_server.host_with_port}"