feat: disable SSR

This commit is contained in:
Anthony Fu 2022-11-23 07:08:36 +08:00
parent e59b3e5db2
commit a6578155ae
29 changed files with 109 additions and 175 deletions

View file

@ -1,7 +1,5 @@
export default defineNuxtRouteMiddleware((from) => {
const token = useCookie('nuxtodon-token')
if (!token.value)
if (!currentUser.value)
return navigateTo('/public')
else if (from.path === '/')
return navigateTo('/home')