mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: apply s3 cdn to client side assets
This commit is contained in:
@@ -40,6 +40,12 @@
|
||||
Discourse.set('assetVersion','<%= Discourse.assets_digest %>');
|
||||
Discourse.Session.currentProp("disableCustomCSS", <%= loading_admin? %>);
|
||||
Discourse.HighlightJSPath = <%= HighlightJs.path.inspect.html_safe %>;
|
||||
<%- if SiteSetting.enable_s3_uploads %>
|
||||
<%- if SiteSetting.s3_cdn_url.present? %>
|
||||
Discourse.S3CDN = '<%= SiteSetting.s3_cdn_url %>';
|
||||
<%- end %>
|
||||
Discourse.S3BaseUrl = '<%= Discourse.store.absolute_base_url %>';
|
||||
<%- end %>
|
||||
</script>
|
||||
|
||||
<%= script 'browser-update' %>
|
||||
|
||||
Reference in New Issue
Block a user