Fix assets loading when WEB_DOMAIN ≠ LOCAL_DOMAIN (#6319)

Since 896cadceed, assets URL are absolute and
not relative. Unfortunately, the domain used to build such URLs is the wrong
one: LOCAL_DOMAIN, and not WEB_DOMAIN, where the assets are stored.
lolsob-rspec
ThibG 2018-01-21 13:22:31 +01:00 committed by Eugen Rochko
parent a1979b50c9
commit 55567d05b2
1 changed files with 1 additions and 1 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 || env.LOCAL_DOMAIN, settings.public_output_path),
publicPath: formatPublicPath(env.ASSET_HOST || env.WEB_DOMAIN || env.LOCAL_DOMAIN, settings.public_output_path),
};
module.exports = {