Use history mode for routing

This commit is contained in:
Logan Williams
2023-08-01 10:20:12 +02:00
parent 1e12e6c4e2
commit 9b387c3eaf
3 changed files with 87 additions and 0 deletions

16
frontend/firebase.json Normal file
View File

@@ -0,0 +1,16 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}

View File

@@ -25,7 +25,11 @@ const routes = [
];
const router = new VueRouter({
mode: "history",
routes,
scrollBehavior() {
return { x: 0, y: 0 };
},
});
export default router;