/ src / routes / +layout.server.ts
+layout.server.ts
 1  import type { LayoutServerLoad } from './$types';
 2  
 3  export const load: LayoutServerLoad = async () => {
 4    // Initialize server-side data for the application
 5    return {
 6      // Initial application settings
 7      appConfig: {
 8        // Default configuration that can be overridden client-side
 9        title: 'YaCy UI',
10        mockMode: false,
11        debugMode: false,
12        baseUrl: 'http://localhost:8090', // YaCy base URL
13        timeouts: {
14          search: 15000,
15          statusCheck: 3000
16        }
17      }
18    };
19  }