DivisionCero

Step 9 - Deploy to production

Create the resource on your chosen platform and connect the repository

Create the resource on your chosen platform and connect the repository:

  1. In the Azure portal, search for Static Web Apps and click Create.
  2. Choose your subscription and resource group and give the resource a name.
  3. Under Plan select Free or Standard (Standard is required for auth with Entra ID).
  4. Under Deployment details select GitHub and authorize access.
  5. Select your organization, repository and branch (main).
  6. Under Build Details:
    • App location: /
    • Api location: (empty)
    • Output location: out
  7. Click Review + create → Create.

Azure will automatically create the AZURE_STATIC_WEB_APPS_API_TOKEN secret in your GitHub repository and run the first deployment.

Once deployed, configure a custom domain under Custom domains in the resource.

After the first successful deployment, every push to main will update the site automatically within a few minutes.