Initial Commit 🚀 🚀

This commit is contained in:
Abhishek Kumar 2025-09-09 14:37:32 +05:30
commit 4f2a629340
444 changed files with 76863 additions and 0 deletions

14
ui/src/lib/apiClient.ts Normal file
View file

@ -0,0 +1,14 @@
import type { CreateClientConfig } from '@/client/client.gen';
export const createClientConfig: CreateClientConfig = (config) => {
// Use different URLs for server-side vs client-side
const isServer = typeof window === 'undefined';
const baseUrl = isServer
? process.env.BACKEND_URL || process.env.NEXT_PUBLIC_BACKEND_URL
: process.env.NEXT_PUBLIC_BACKEND_URL;
return {
...config,
baseUrl,
};
};