Azure static web app yaml pipeline Error: Could not detect the language from repo

angular
Ethan JacksonI am using the task below to deloy my Angular application to the Azure static web app.
- task: AzureStaticWebApp@0
inputs:
app_location: '/app/dist/my-web/browser/'
azure_static_web_apps_api_token: $(deployment_token)
I am getting the error below.
Detecting platforms...
Could not detect any platform in the source directory.
Error: Could not detect the language from repo.
---End of Oryx build logs---
Oryx was unable to determine the build steps. Continuing assuming the assets in this folder are already built. If this is an unexpected behavior please contact support.
Finished building app with Oryx
Failed to find a default file in the app artifacts folder (/). Valid default files: index.html,Index.html.
If your application contains purely static content, please verify that the variable 'app_location' in your deployment configuration file points to the root of your application.
If your application requires build steps, please validate that a default file exists in the build output directory.
Answer
To fix the error, I had to change the task to what I have below.
- task: AzureStaticWebApp@0
inputs:
app_location: '/app/'
output_location: '/dist/my-web/browser/'
azure_static_web_apps_api_token: $(deployment_token)
Adding app_location: '/app/'
and output_location: '/dist/my-web/'
fixed that issue.