• Install SharePoint Framework Yeoman generator:
  • Generate a new SPFx solution using Yeoman:

yo @microsoft/sharepoint

gulp build
gulp bundle –ship

Package the solution so it can be deployed:

Bash – Copy code below

Once deployed, navigate to the SharePoint site where you want to use your SPFx navigation solution:

8. Test and Validate

Test the navigation on your SharePoint site to ensure it works correctly. Ensure it dynamically updates based on the site structure if you’re using dynamic navigation.

Deploy & manage SPFx (SharePoint Framework) solution

  • Full Control over a specific SharePoint site collection.
  • Can add the SPFx web parts or extensions to the pages of the site.
  • Permission Required: Site Owner or Full Control on specific sites.
  • Why: If you’re deploying SPFx solutions only on specific sites (not globally), you need sufficient permissions to manage site features.

Deployment type Tenant-wide or Site Collection-specific.

You can deploy SPFx solutions in two ways: Tenant-wide or Site Collection-specific. Here’s a breakdown of both options:

  • Use Case: You want the SPFx solution available only on specific sites (site collections).
  • How:
  • Upload the .sppkg file to the App Catalog at the site collection level (if you have a site collection app catalog).
  • Install and activate the solution within the specific site collection you want it to be available.
  • Alternatively, if deploying via the Tenant App Catalog, you can choose not to deploy it globally, then manually add it to the specific site collection where it’s needed.

Pros:

If you don’t want to deploy tenant-wide but want app-level control over specific site collections, you can enable a site collection app catalog:

SharePoint Framework SPFx Solution Deployment
Tagged on: