Monorepo for Tangled tangled.org
1

Configure Feed

Select the types of activity you want to include in your feed.

core / web / src / routes / +layout.server.ts
369 B 12 lines
1import { getPublicConfig } from '$lib/server/config'; 2import type { LayoutServerLoad } from './$types'; 3 4export const load: LayoutServerLoad = ({ cookies }) => { 5 const did = cookies.get('tangled.currentDid'); 6 const handle = cookies.get('tangled.currentHandle'); 7 8 return { 9 publicConfig: getPublicConfig(), 10 auth: did ? { did, handle: handle ?? did } : null 11 }; 12};