Ans:-
If you want to host your SPFx apps in Azure CDN storage container, SPFx provides options for that as well in the config/deploy-azure-storage.json file. Use the gulp task gulp deploy-azure-storage
{
"$schema": "https://dev.office.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
"workingDir": "./temp/deploy/",
"account": "<!-- STORAGE ACCOUNT NAME -->",
"container": "spfx-1",
"accessKey": "<!-- ACCESS KEY -->"
}
- workingDir - all files from this location will be moved to Azure
- account - Azure storage account name
- container - storage container name of this app
- accessKey - Key to access the storage account
No comments:
Post a Comment