Skip to content

Commit

Permalink
set router for both github deploy and production
Browse files Browse the repository at this point in the history
  • Loading branch information
bmesuere committed Jul 29, 2023
1 parent 7f827db commit 9de8f2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions dashboard/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ const routes = [
]

const router = createRouter({
//history: createWebHistory(process.env.BASE_URL),
history: createWebHistory('/vlinder/'),
history: createWebHistory("/dashboard/"),
routes,
})

Expand Down

0 comments on commit 9de8f2c

Please sign in to comment.