Skip to content

Commit af6e023

Browse files
ci(vercel): enable clean URLs
#109 (comment)
1 parent dd73b4c commit af6e023

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ jobs:
104104
- uses: actions/download-artifact@v7
105105
with:
106106
name: vercel-dist
107+
- name: Enable clean URLs
108+
# https://vitepress.dev/guide/routing#generating-clean-url
109+
shell: bash
110+
run: |
111+
cat >vercel.json <<'EOF'
112+
{
113+
"$schema": "https://openapi.vercel.sh/vercel.json",
114+
"cleanUrls": true
115+
}
116+
EOF
107117
- env:
108118
VERCEL_JSON: ${{ secrets.VERCEL_JSON }}
109119
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)