Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hey Teeravee Sirinapasawasdee,
let’s fix the deployment flow.
Problem: putting yarn install && yarn build in the startup command is incorrect — startup runs at runtime, not during deployment, so Azure serves the default page when wwwroot is empty or missing index.html. Fix by building during CI and deploying the build output to wwwroot, or let App Service build the app during deployment.
Quick checklist:
Remove the startup command (or replace it with a runtime command like npx serve -s build only if you need a Node server).
In your GitHub Actions workflow, build and then deploy the build/ folder — e.g.:
- name: Install and build
run: yarn install && yarn build
- name: Deploy to Azure WebApp
uses: azure/webapps-deploy@v2
with:
app-name: 'your-app-name'
package: ./build
If you prefer App Service to build, set the app setting SCM_DO_BUILD_DURING_DEPLOYMENT=true and deploy source; check deployment logs in Kudu (Advanced Tools) and Log stream for build errors.
- Verify
index.htmlexists at/home/site/wwwroot/index.htmlvia Kudu or FTP — if absent, deploy failed.