An Azure service that provides streamlined full-stack web app development.
For Azure Static Web Apps managed Functions, the documented places to get more detail are the deployment workflow logs and Application Insights.
- To retrieve deployment error details for the upload/build path:
- Open the GitHub repository for the static web app.
- Select Actions.
- Open the failed workflow run.
- Open Build and Deploy Job.
- Open Build And Deploy and review the log output.
- invalid
app_location - invalid or missing
output_location - missing or not found API directory
- To retrieve runtime/server-side errors for managed Functions:
- Logs are only available if Application Insights is enabled.
- For managed Functions in Static Web Apps, logging is turned on by enabling Application Insights on the static web app.
- After Application Insights is installed, runtime failures can be reviewed in Azure portal:
- Open the Resource Group for the static web app.
- Select the Application Insights instance with the same name as the static web app.
- Under Investigate, select Failures.
- Use Drill into and open the failed operations.
- Select an operation to view the full error message and stack trace.
- For the specific request for a managed Functions deployment inner error, server-side deployment log, or deployment/correlation ID for the failed upload: No documented method in the provided material exposes a separate managed-Functions backend deployment log, inner error stream, or correlation ID beyond the workflow logs and Application Insights.
- For compatibility restrictions that could explain the failure: The documented managed Functions runtime constraints list supported Node.js versions as Node.js 12, 14, 16, 18, and Node.js 20 (preview). Node.js 22 is not listed in the provided managed Functions constraints. That is the only documented compatibility restriction in the provided material relevant to the reported Node.js version. No documented restriction was provided for SWA CLI 2.0.10 or the Free plan causing this exact failure.
- Diagnostics that help distinguish package/configuration validation from managed backend issues:
- If the GitHub workflow log shows folder/configuration errors, focus on
app_location,output_location, andapi_location. - If deployment succeeds but API requests fail, enable Application Insights and inspect Failures for runtime exceptions and stack traces.
- For TypeScript-based Node Functions, verify:
-
tsconfig.jsonoutDirpoints to the build output -
scriptFilepoints to compiled.jsfiles, not.ts - dependencies are installed
-
- For Node configuration issues, verify:
- required environment variables are set in Azure portal Application Settings
- Application Insights connection string is configured
- log filtering in
host.json
- If the GitHub workflow log shows folder/configuration errors, focus on
The strongest documented signal in this case is the runtime-version mismatch: managed Functions constraints in the provided documentation do not include Node.js 22.
References: