mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-08-12 20:20:34 +00:00
8 lines
321 B
TypeScript
8 lines
321 B
TypeScript
import { PUBLIC_API_BASE } from '$env/static/public';
|
|
import { setGlobalApiBase } from '$lib/api';
|
|
import { globals } from '$lib/globals';
|
|
import type { LayoutLoad } from './$types';
|
|
|
|
setGlobalApiBase(PUBLIC_API_BASE || 'http://0.0.0.0:3000');
|
|
|
|
export const load: LayoutLoad = async () => ({ globals: await globals() });
|