none
Sharpoint Online Modern: How to deploy SPFX on different dev, staging and production environment in for same tenant. So that it not affect each other. RRS feed

  • Question

  • Hello,
    I have a single tenant, and we Deploy the SPFX solution on APP catalog on that tenant.
    We have 3 Sites on the same tenant as Dev site, staging site and production site.
    When we deploy the SPFX on catalog it shows the changes of that SPFX on all 3 sites.
    Please let me know how we can deploy the SPFX Just or single site at a time without showing effect on other sites.?

    Thanks,
    Rajesh
    Friday, June 19, 2020 11:49 AM

All replies

  • {
      "$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
      "port": 4321,
      "https": true,
      "serveConfigurations": {
        "default": {
          "pageUrl": "https://contoso.sharepoint.com/sites/mySite/SitePages/myPage.aspx",
          "customActions": {
            "d7678bd7-b58a-44fc-b9fa-a621a89edcad": {
              "location": "ClientSideExtension.ApplicationCustomizer",
              "properties": {
                "testMessage": "Test message"
              }
            }
          }
        },
        "helloWorld": {
          "pageUrl": "https://contoso.sharepoint.com/sites/mySite/SitePages/myPage.aspx",
          "customActions": {
            "d7678bd7-b58a-44fc-b9fa-a621a89edcad": {
              "location": "ClientSideExtension.ApplicationCustomizer",
              "properties": {
                "testMessage": "Test message"
              }
            }
          }
        }
      }
    }
    Friday, June 19, 2020 3:53 PM
  • You can, in most cases, use a Site Collection App Catalog created via Add-SPOSiteCollectionAppCatalog.

    Trevor Seward

    Office Apps and Services MVP



    Author, Deploying SharePoint 2019

    Author, Deploying SharePoint 2016

    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

    Friday, June 19, 2020 7:37 PM
  • Hi,
    You could upload spfx to site collection app catalog. It is hidden by default. You could use pnp powershell to show it.

    $username = "amos@contoso.onmicrosoft.com"
    $password = "Password"
    $cred = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $userName, $(convertto-securestring $Password -asplaintext -force)
    Connect-SPOService -Url https://contoso-admin.sharepoint.com -Credential $cred
    $site = Get-SPOSite https://contoso.sharepoint.com/sites/dev
    Add-SPOSiteCollectionAppCatalog -Site $site
    #you could use this to disable it
    # Remove-SPOSiteCollectionAppCatalog -Site $site

    After you run this script,you could find app catalog in site contents.

    Best Regards,

    Amos


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.



    Monday, June 22, 2020 2:36 AM
  • Hi,

    Would you please provide us with an update on the status of your issue?

    Best Regards,

    Amos


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Monday, June 29, 2020 7:18 AM