Reputation: 25
Im deploying on azure static web app but getting the error, which says: Could not detect any platform in the source directory. Error: Could not detect the language from repo.
i tried changing the app_location to /src but still showing could not detect the language from repo.
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/src" # App source code path
api_location: "" # Api source code path - optional
output_location: "/build" # Built app content directory - optional
Upvotes: 2
Views: 3693
Reputation: 14800
I've had the same issue with a pure html/js/css website without npm build.
Here this example helped for my case: https://github.com/staticwebdev/vanilla-basic/tree/main
I've done these steps:
Then I could build my app-server via github action.
Upvotes: 0
Reputation: 8400
Glad @Bhanuvidh Mansinghani, that the given reference worked to resolve your issue.
I have found the similar issue from the GitHub of mslearn-staticwebapp repository that states could not detect the language from repository in static web app workflow.
Many customers faced the similar issue and fixed with the following steps:
Upvotes: 1