Function: createServerClient()
createServerClient(
options?):Client<paths,`${string}/${string}`>
Defined in: web/lib/api/client.ts:268
Server-side API client with custom fetch for Server Components. Includes Next.js cache configuration for data fetching.
Parameters
options?
Additional fetch options
revalidate
number
Returns
Client<paths, `${string}/${string}`>
Configured API client for server-side use
Remarks
Uses the same error middleware as the browser client for consistent error handling across client and server.