Forum Discussion

Joseph Ackerman's avatar
Joseph Ackerman
Iron Contributor
May 11, 2017

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...
  • VesaJuvonen's avatar
    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. 

Resources