Forum Discussion
Joseph Ackerman
May 11, 2017Iron Contributor
How do we deploy SPFx Web Parts to a Private CDN on O365?
Vesa Juvonen, There's plenty of documentation showing how the Public CDN works with SPFx web parts, but very little (or no) discussion of how the Private CDN would work for hosting the web part j...
- May 16, 2017
You cannot deploy SPFx solutions using private CDN at least currently. This is due the fact that the private CDN URL is changing and is not static, which is needed, so that you can define web part host URL in the web part manifest.
Few pointers
- Client-side web part JS files only contain JS script - not secrets or actual information, so there should not be any concerns from that perspective around hosting them from public CDN
- If you still would like to get them hosted from fully secured URL, you'd use simply directly for example library in SharePoint without any CDN capabilities and you'd update the manifest URLs to point to that one
Hopefully that clarifies the situation.
VesaJuvonen
Microsoft
May 16, 2017You cannot deploy SPFx solutions using private CDN at least currently. This is due the fact that the private CDN URL is changing and is not static, which is needed, so that you can define web part host URL in the web part manifest.
Few pointers
- Client-side web part JS files only contain JS script - not secrets or actual information, so there should not be any concerns from that perspective around hosting them from public CDN
- If you still would like to get them hosted from fully secured URL, you'd use simply directly for example library in SharePoint without any CDN capabilities and you'd update the manifest URLs to point to that one
Hopefully that clarifies the situation.
Niravnvs
Jul 12, 2021Copper Contributor
Hi @Vesa,
I this still a limitation or latest version of the SPFx Framework have the feature to support private CDN?
Pleaes let me know.
Thanks!
I this still a limitation or latest version of the SPFx Framework have the feature to support private CDN?
Pleaes let me know.
Thanks!