Forum Discussion
SharePoint Framework SPFX multiple app versions
- May 15, 2017
AFAIK, yes.
We need the ID to be different, so that you can upload 2 pkg files. The package files will point at the code in the CDN.
An alternative could be to have two tenant and/or two CDNs.
Hi Man Cheng,
You could probably do the following:
In package-solution there is an id that makes the web part unique. So you could change this ID before deploying the app to your CDN for the second time and then upload the different pgk file to your app store.
You would probably also need to update the container in teh deploy-azure-storage.json so that you keep the app in a different container within Azure. Note that you will need to creeate this staging container in Azure as well.
then finally update the cdnBasePath in write-manifests.json.
- Man ChengMay 15, 2017Copper Contributor
Thanks for the reply
I tried to change ID, that didn't work
what I want to do is create 2 versions
1. development,
code running locally, test on a page where app web part is installed, (not workbench page)
2. staging/production
code retrieved from Azure, app runs on a page where app web part is installed.
so I will need to have two versions of app uploaded to the App store, one with cdnpath points to Auzre,
- May 15, 2017
Did you try with two containers as mentioned earlier?
- Man ChengMay 15, 2017Copper Contributor
no, I only want one copy to be in Azure, do I still need two containers?