diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f8e5b4d6..80f9c866 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,13 +9,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 + uses: actions/checkout@v2 with: persist-credentials: false - name: Install and Build 🔧 run: | cd dashboard + sed -i 's|createWebHistory("/dashboard/")|createWebHistory("/vlinder/")|g' src/router/index.ts yarn install yarn build diff --git a/dashboard/src/router/index.ts b/dashboard/src/router/index.ts index dc0f7072..807f443e 100644 --- a/dashboard/src/router/index.ts +++ b/dashboard/src/router/index.ts @@ -20,8 +20,7 @@ const routes = [ ] const router = createRouter({ - //history: createWebHistory(process.env.BASE_URL), - history: createWebHistory('/vlinder/'), + history: createWebHistory("/dashboard/"), routes, })