React app deploy fails with unsupported language error
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
I have recently created a static web app with the following command:
```shell
az staticwebapp create \
-n {NAME} \
-g {PROJECT} \
-s {REPO} \
-l WestUS2 \
-b master \
--app-artifact-location ".next" \
--token {TOKEN} \
--verbose
```
This command succeeded and resulted in a new GitHub Action being added to my project repository. The deploy action is, however, failing with the following error message:
```
...
Copying files to destination directory '/bin/staticsites/ss-oryx/api'...
Done in 3 sec(s).
Removing existing manifest file
Creating a manifest file...
Manifest file created.
Done in 42 sec(s).
---End of Oryx build logs---
The function language ',nodejspython' is unsupported or invalid. The following languages are valid: node, dotnet, python.
```
- next.js / react project
- workflow file:
```yaml
name: Azure Static Web Apps CI/CD
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- masterjobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v0.0.1-preview
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_SAND_091D5411E }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: 'upload'
###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: '.' # App source code path
api_location: '.' # Api source code path - optional
app_artifact_location: '.next' # Built app content directory - optional
###### End of Repository/Build Configurations ######
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.