console.time()
const { account } = createSessionClient(event);
let appwriteUser: any;
try {
appwriteUser = await account.get();
} catch (error) {
throw redirect(303, "/login");
}
let domainId = Number(appwriteUser.prefs?.domain) || 0;
console.timeEnd()