Once you have tested your web part on your local workbench and are ready to deploy it on the live environment, there are several different approaches that you can take:
- You can deploy the web part to the Microsoft 365 app catalog so that it is available on all SharePoint sites on the tenant or site collection app catalog, restricted to a single site collection.
- You can deploy the web part to the Microsoft 365 CDN.
- You can host the web part on Azure CDN.
In this book, we will only cover the first approach, which is perhaps the simplest. To read about the other two approaches, visit https://m365book.page.link/SPFx-office-cdn and https://m365book.page.link/SPFx-azure-cdn.
To deploy the web part to the tenant app catalog, you need to have the SharePoint Administrator role.
To deploy this on a specific site collection, you need to first...