page wrapper

This commit is contained in:
2026-01-07 12:40:52 +01:00
parent e589c30bf8
commit 0db80fa98d
128 changed files with 7386 additions and 8096 deletions

15
apps/website/lib/utils.ts Normal file
View File

@@ -0,0 +1,15 @@
/**
* Utility function to check if code is running on server or client
* @returns true if running on server (SSR), false if running on client (browser)
*/
export function isServer(): boolean {
return typeof window === 'undefined';
}
/**
* Utility function to check if code is running on client
* @returns true if running on client (browser), false if running on server (SSR)
*/
export function isClient(): boolean {
return typeof window !== 'undefined';
}