your personal website on atproto - mirror blento.app
at button 16 lines 491 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({ platform, url }) { 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 const cache = platform?.env?.USER_DATA_CACHE as unknown; 14 15 return await loadData(handle as Handle, cache as UserCache); 16}