your personal website on atproto - mirror blento.app
at timer-card-tiny-fix 17 lines 492 B view raw
1import { loadData } from '$lib/website/load'; 2import { env } from '$env/dynamic/public'; 3import type { UserCache } from '$lib/types'; 4import type { Handle } from '@atcute/lexicons'; 5 6export async function load({ url, platform }) { 7 const hostname = url.hostname; 8 9 let handle = env.PUBLIC_HANDLE; 10 if (hostname === 'flo-bit.blento.app') { 11 handle = 'flo-bit.dev'; 12 } 13 14 const cache = platform?.env?.USER_DATA_CACHE as unknown; 15 16 return await loadData(handle as Handle, cache as UserCache); 17}