- Build frontend application (dist/ ready) - Build Function App API (TypeScript compiled) - Fix staticwebapp.config.json (node:20 instead of node:22) - Add deployment documentation and instructions Ready for automatic deployment via GitHub Actions
2.6 KiB
2.6 KiB
🚀 Application Deployment Instructions
Date: November 12, 2025
Status: Deployment in progress
Current Status
✅ Completed
- Frontend built successfully (dist/ directory ready)
- Function App API built successfully
- Configuration fixed (node:20 instead of node:22)
⚠️ Pending
- Static Web App deployment (SWA CLI having config issues)
- Function App deployment (needs zip package)
Recommended Deployment Method: GitHub Actions
The most reliable way to deploy is via GitHub Actions. If you have a workflow configured:
# Commit and push to trigger deployment
git add .
git commit -m "Deploy application to production"
git push origin main
This will automatically:
- Build frontend
- Build API
- Deploy to Static Web App
- Deploy Function App functions
- Run tests
Alternative: Azure Portal Deployment
Static Web App
- Go to: https://portal.azure.com
- Navigate to: Static Web App →
mim-prod-igiay4-web - Go to: Deployment Center
- Choose: Upload or Connect to GitHub
- Upload the
dist/folder contents or connect your repository
Function App
- Go to: https://portal.azure.com
- Navigate to: Function App →
mim-prod-igiay4-func - Go to: Deployment Center
- Choose: Upload or Connect to GitHub
- Upload the built API code from
api/src/
Manual Deployment Commands
Static Web App (if SWA CLI works)
# Get deployment token
DEPLOY_TOKEN=$(az staticwebapp secrets list \
--name mim-prod-igiay4-web \
--resource-group rg-miraclesinmotion-prod \
--query "properties.apiKey" -o tsv)
# Deploy
npx @azure/static-web-apps-cli deploy ./dist \
--env production \
--deployment-token "$DEPLOY_TOKEN"
Function App (if func CLI available)
cd api
func azure functionapp publish mim-prod-igiay4-func
Configuration Issues Fixed
staticwebapp.config.json
- Changed
apiRuntimefromnode:22tonode:20 - This is required as Azure Static Web Apps doesn't support Node.js 22 yet
Verification
After deployment, verify:
# Check Static Web App
curl -I https://lemon-water-015cb3010.3.azurestaticapps.net
# Check Function App
curl -I https://mim-prod-igiay4-func.azurewebsites.net
The Static Web App should show your React application, not the Azure default page.
Next Steps
- Recommended: Push to GitHub to trigger automatic deployment
- Alternative: Use Azure Portal to upload files manually
- Verify: Test endpoints after deployment
For issues, see: docs/deployment/DEPLOYMENT_ATTEMPT_LOG.md