Skip to content

Deployment guide ​

TL;DR: You build your project, package a .sppkg, and upload it to the app catalog. Then you approve permissions and add the web part to a page.

This guide shows the path from code to a live web part. For exact outputs, see ../reference/architecture.md.

Pipeline overview ​

sh
rspfx build     # -> dist/ + release/manifests + release/assets
rspfx package   # -> sharepoint/solution/<name>.sppkg
rspfx deploy    # -> upload .sppkg to app catalog via REST
CommandOutputUse
rspfx builddist/<bundle>.js and release manifestsCI and analysis
rspfx packagesharepoint/solution/<name>.sppkgship
rspfx package --no-buildsame .sppkg from existing release/incremental
rspfx deploypackages and posts to catalogautomated upload

npm run build and npm run package proxy to the same commands.

CDN notes ​

includeClientSideAssetscdnBasePathResult
true""Bundles embedded in .sppkg under ClientSideAssets/. No CDN needed.
false""No ClientSideAssets. Load fails unless you host files. Avoid this.
false or true"https://cdn.contoso.com/<name>/"Manifests point to that URL. Upload release/assets/* to the CDN.

cdnBasePath must end with /. Use the first row unless you need an external CDN.

Troubleshoot ​

SymptomFix
Bundle 404 in workbench or pagebundle name does not match entryModuleId
External X could not be resolvedremove the externals entry or install X
Can't resolve XxxWebPartStringscheck localizedResources pattern includes {locale}
paths.zippedPackage missingcheck package-solution.json has solution.id, solution.name, paths.zippedPackage
Sync to Teams missingcheck teams/ existed at package time and includeClientSideAssets is true

For internals, see ../reference/architecture.md.

Released under the MIT License.