Forum Discussion
How do we deploy SPFx Web Parts to a Private CDN on O365?
- 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.
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.
- Joseph AckermanMay 17, 2017Iron Contributor
That is excellent information, thank you so much.
>>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<<
I will try to convince my client of this ;)
>>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 <<
Yes thanks! I actually got this working yesterday. I set the cdnbasepath value to a server-relative path of the library where the bundled JS and JSON files are and it worked perfectly. My only concern was whether the performance would be adequate, but so far it looks good.
>>Hopefully that clarifies the situation.<<
It does indeed. Thanks again!
- NiravnvsJul 12, 2021Copper ContributorHi @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!