From 5bc69944407d5f4502e187efefb31765a9b4f785 Mon Sep 17 00:00:00 2001 From: ecrum19 Date: Tue, 16 Sep 2025 10:01:07 +0200 Subject: [PATCH] added 404.html file after build step to handle gh-pages routing issues (3) --- main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.yml b/main.yml index ddb06d5..0554291 100644 --- a/main.yml +++ b/main.yml @@ -9,7 +9,8 @@ permissions: jobs: build-and-deploy: runs-on: ubuntu-latest - + env: + VITE_BASE_URL: /solid-cockpit/ steps: - name: Checkout 🛎️ uses: actions/checkout@v3 @@ -23,11 +24,11 @@ jobs: - name: Install and Build 🔧 run: | yarn i - yarn run build --base=/solid-cockpit/ + yarn run build - name: Add 404 fallback run: cp dist/index.html dist/404.html - + - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@releases/v4 with: