Azure / Azure/static-web-apps

VuePress - Default build configuration is not working

Open
#583 1 comment 1 reaction 0 assignees View on GitHub
documentation
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

When following the official VuePress _Getting Started_, and selecting `VuePress` build preset, the GitHub actions fails.

**To Reproduce**
Steps to reproduce the behavior:
1. Create an empty GitHub repository
2. Follow the [Getting Started](https://vuepress.vuejs.org/guide/getting-started.html) with Yarn
3. Commit files in your repository
4. Create a new SWA from the portal, and select `VuePress`

**Expected behavior**
The static web app is deployed after few minutes.

**Actual result**
- The first change I had to do within the Azure portal while creating the SWA was to change the default directory from "app" to "docs"
- When the GH action run, it failed because the expected output folder was ".vuepress/dist", while it's in "src/.vuepress/dist".

**Device info (if applicable):**
Tested on CodeSpaces (default image)

**Additional context**
While it's an easy fix from the user (when you know how to read GH actions logs, I find it very deceptive for a first-time user. I assume a lot of vuepress websites are created through `yarn create vuepress-site`, hence stumbling into this issue.

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.