feat: history mode

Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
This commit is contained in:
Corentin Thomasset 2020-06-23 10:10:58 +02:00
parent a20858dfb8
commit d92c46c60b
No known key found for this signature in database
GPG key ID: DBD997E935996158
2 changed files with 8 additions and 0 deletions

View file

@ -158,6 +158,7 @@ const routes = [
const router = new VueRouter({
base: process.env.BASE_URL,
mode: 'history',
routes
});

7
vercel.json Normal file
View file

@ -0,0 +1,7 @@
{
"version": 2,
"routes": [
{ "handle": "filesystem" },
{ "src": "/.*", "dest": "/index.html" }
]
}