diff options
author | M Somerville <dracos@users.noreply.github.com> | 2018-08-25 12:27:08 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-25 13:27:08 +0200 |
commit | 2bba6e582d4e8dcf119177e36f1e7fcf3873aeb6 (patch) | |
tree | 771949d55b2329a134ae798928554aadf448cef9 /config/webpack | |
parent | 29da56cf75c1381b31a8b26738a94eff482f8099 (diff) |
Rename S3_CLOUDFRONT_HOST to S3_ALIAS_HOST. (#8423)
Still check for S3_CLOUDFRONT_HOST for existing installs.
Diffstat (limited to 'config/webpack')
-rw-r--r-- | config/webpack/production.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/webpack/production.js b/config/webpack/production.js index 4966807a1..27a78108b 100644 --- a/config/webpack/production.js +++ b/config/webpack/production.js @@ -23,8 +23,8 @@ try { let attachmentHost; if (process.env.S3_ENABLED === 'true') { - if (process.env.S3_CLOUDFRONT_HOST) { - attachmentHost = process.env.S3_CLOUDFRONT_HOST; + if (process.env.S3_ALIAS_HOST || process.env.S3_CLOUDFRONT_HOST) { + attachmentHost = process.env.S3_ALIAS_HOST || process.env.S3_CLOUDFRONT_HOST; } else { attachmentHost = process.env.S3_HOSTNAME || `s3-${process.env.S3_REGION || 'us-east-1'}.amazonaws.com`; } |