筆記下 Azure 靜態網站部屬不同環境 (類似 App Service Slot)
結論
trigger:
- main
- dev
- staging
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
submodules: true
- task: AzureStaticWebApp@0
inputs:
...
production_branch: 'main'
原本
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
submodules: true
- task: AzureStaticWebApp@0
inputs:
...
Azure
理論上在預覽環境就會多出來可以瀏覽的按鈕
參照
在 Azure Static Web Apps 中建立分支預覽環境 | Microsoft Learn
使用 Azure DevOps 發佈 Azure Static Web Apps | 御用小本本 - 點部落 (dotblogs.com.tw)