Skip to content

Commit ee2df51

Browse files
committed
fix: set correct base-href and drop stale CNAME in web deploy workflow
Site is hosted as a GitHub Pages project page at /Cooketh-Flow/, but the build used the default base-href of "/", breaking asset resolution. Also removes a leftover CNAME write pointing at an unrelated custom domain.
1 parent dbfbaa4 commit ee2df51

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎.github/workflows/deploy_web.yaml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
4747

4848
- name: Build web
49-
run: flutter build web --release --no-source-maps --dart-define="SUPABASE_URL=${{ secrets.SUPABASE_URL }}" --dart-define="SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}"
49+
run: flutter build web --release --no-source-maps --base-href="/Cooketh-Flow/" --dart-define="SUPABASE_URL=${{ secrets.SUPABASE_URL }}" --dart-define="SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}"
5050

5151
- name: Debug build output
5252
run: |
@@ -77,7 +77,6 @@ jobs:
7777
git checkout -B gh-pages
7878
rm -rf ./*
7979
cp -r /tmp/web-build/* .
80-
echo "cookethflow.cookethcompany.xyz" > CNAME
8180
git add .
8281
git commit -m "Deploy web build to gh-pages" || echo "No changes to commit"
8382
git push origin gh-pages --force

0 commit comments

Comments
 (0)