Skip to content

Commit

Permalink
feat(deployment): Switch to hash based routing as it makes dynamic co…
Browse files Browse the repository at this point in the history
…ntext paths easier

use relative baseUrl to allow for any context path
  • Loading branch information
Morl99 committed Jan 1, 2022
1 parent 817e293 commit 67c7c89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const routes: Array<RouteConfig> = [
]

const router = new VueRouter({
mode: "history",
base: process.env.BASE_URL,
routes,
})
Expand Down
5 changes: 1 addition & 4 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
module.exports = {
transpileDependencies: ["vuetify"],
publicPath:
process.env.NODE_ENV === "production"
? "/" + process.env.REPOSITORY_NAME + "/"
: "/",
publicPath: "./",
}

0 comments on commit 67c7c89

Please sign in to comment.