Skip to content

Commit

Permalink
ci: Configure subdir of GH pages
Browse files Browse the repository at this point in the history
  • Loading branch information
smessie committed Oct 10, 2023
1 parent e4d1149 commit 5f34e69
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request: {}
permissions:
contents: write
env:
SUBDIR: /scholarly-browser/
jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand Down
53 changes: 45 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"devDependencies": {
"@rushstack/eslint-patch": "^1.3.2",
"@tsconfig/node18": "^18.2.0",
"@types/node": "^18.17.5",
"@vitejs/plugin-vue": "^4.3.1",
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/eslint-config-typescript": "^11.0.3",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as VueRouter from "vue-router";


const router = VueRouter.createRouter({
history: VueRouter.createWebHistory(),
history: VueRouter.createWebHistory(process.env.NODE_ENV === "production" ? "/scholarly-browser/" : "/"),
routes: [{path: "/", component: App, props: true}],
});

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"types": ["node"]
}
}

0 comments on commit 5f34e69

Please sign in to comment.