Skip to content

Commit

Permalink
use hash routing to avoid 404 error due to missing redirect server co…
Browse files Browse the repository at this point in the history
…nfiguration
  • Loading branch information
yuetloo committed May 2, 2023
1 parent 8a214bc commit 584319c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion vue-app/public/_redirects

This file was deleted.

4 changes: 2 additions & 2 deletions vue-app/src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHashHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'

const Landing = () => import('@/views/Landing.vue')
Expand Down Expand Up @@ -251,7 +251,7 @@ const routes: Array<RouteRecordRaw> = [
]

const router = createRouter({
history: createWebHistory(),
history: createWebHashHistory(),
routes,
})

Expand Down

0 comments on commit 584319c

Please sign in to comment.