Azure / Azure/static-web-apps

Help me configure this horrible YML build pipeline for a static web app

Open
#1,463 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

YML pipelines are ridiculous. How did we go from GUI with helpful drop down lists and directory pickers to basically notepad where you have zero intellisense and need to run the pipeline several hundred times to figure out you formatted the commands incorrectly?

Anyways.

I'm using an Azure Static Web app and it created a build pipeline for me.
The app is a React app using Webpack and it generates a `dist` folder at the root.

Here's the `AzureStaticWebApp@0` task

```
- task: AzureStaticWebApp@0
inputs:
app_location: ''
output_location: 'dist'
skip_api_build: true
azure_static_web_apps_api_token: '$(AZURE_STATIC_WEB_APPS_API_TOKEN_XYZ123)'
```

I've tried every possible combination of values in `app_location` and `output_location`, but get the following error:
`Oryx built the app folder but was unable to determine the location of the app artifacts. Please specify the app artifact location.`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.