- 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.0 KiB
2.0 KiB
📝 Deployment Attempt Log
Date: November 12, 2025
Status: ⚠️ In Progress
Deployment Steps Attempted
✅ Step 1: Frontend Build
- Status: ✅ Success
- Output: Built in 16.57s
- Size: 638.30 KiB (precache)
- Location:
dist/directory
⚠️ Step 2: Static Web App Deployment
- Status: ⚠️ Configuration Issue Fixed, Retrying
- Issue: Initial deployment failed due to
node:22not being supported - Fix: Updated
staticwebapp.config.jsonto usenode:20 - Method: Using SWA CLI with deployment token
- Next: Retry deployment with corrected configuration
✅ Step 3: Function App Build
- Status: ✅ Success
- Output: TypeScript compiled successfully
- Location:
api/src/directory
⚠️ Step 4: Function App Deployment
- Status: ⚠️ In Progress
- Issue:
funccommand not available in WSL environment - Alternative: Using zip deployment via Azure CLI
- Package: Creating
api-func-deploy.zip
Configuration Fixes Applied
staticwebapp.config.json
- Changed:
apiRuntimefromnode:22tonode:20 - Reason: Azure Static Web Apps doesn't support Node.js 22 yet
- Status: ✅ Fixed
Next Steps
- ✅ Retry Static Web App deployment with fixed config
- ✅ Complete Function App zip deployment
- ⏳ Verify both deployments
- ⏳ Test endpoints
Commands Used
# Build frontend
npm run build
# 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 Static Web App
npx @azure/static-web-apps-cli deploy ./dist \
--env production \
--deployment-token "$DEPLOY_TOKEN"
# Build Function App
cd api && npm run build
# Deploy Function App (zip method)
az functionapp deployment source config-zip \
--resource-group rg-miraclesinmotion-prod \
--name mim-prod-igiay4-func \
--src ./api-func-deploy.zip
Last Updated: November 12, 2025