I try to deploy my first Field Customizer app to a SharePoint online tenant. Tried several things, without CDN and with bundled assets, now using a CDN (which I previously configured with the SharePoint Online Management Shell). Nothing worked. There are warnings and 404s on the JS console, it seems that the field-customizer js file is not loaded.
What I did:
I added the CDN base path to
I copied the files from
<myprojectpath>/temp/deployto my CDN location
gulp bundle --ship
gulp package-solution --ship
Upload and activate .sppkg file
made sure that the latest version is running on the target site
Did I miss anything? Are there any other relevant config settings I need to change? Is a CDN necessary at all, can't sharepoint 'automatically' host the js files somewhere when I include them in the package (like in a sharepoint 2013 hosted app)?
I decided not to host the assts (which is basically one script) in the CDN but bundle it and deploy them directly, I learned that it should be possible.
But still I don't know how to actually attach the field customizer to a specific field of a specific list. Maybe that's the issue. In local hosting debug mode you do it with lengthy URL parameters, but how to do it in production?