Fix: make locals global
All checks were successful
Build Docker Image / run (pull_request) Successful in 51s

This commit is contained in:
2024-04-26 17:05:16 +02:00
parent 41ed285326
commit 9a4357394a
5 changed files with 18 additions and 14 deletions

View File

@ -4,7 +4,7 @@ import AstroUtils from 'libs/AstroUtils';
import PocketBase from 'pocketbase'
const pb = Astro.locals.pb as PocketBase
const pb = Astro.locals.pb
if(pb.authStore.isValid){
return Astro.redirect("/account")