2015-08-29 23 views

回答

1

我已經詳細說明我們如何在this post做到了這一點,在Edthena。該TLDR是:

在您的服務器代碼的某處添加此行:

WebAppInternals.setBundledJsCssPrefix(CDN_URL); 

哪裏CDN_URL是您的CloudFront的URL(例如https://a27n0s89ik4xb3.cloudfront.net)。

Origin Domain Name: myapp.example.com 
Origin ID: myapp.example.com 
Viewer Protocol Policy: HTTPS Only 
Compress Objects Automatically: yes 

如果你提供自己的字體,你可以與跨起源錯誤,結束了(除非你使用的字體數據URL):

我們除了以下創建CloudFront的分佈時保持默認值。 Josh Owens介紹瞭如何在his post中處理這個問題。

相關問題