llama-stack-mirror/llama_stack/ui/lib/server-config.ts
Eric Huang a4d84f7805 ui
# What does this PR do?


## Test Plan
# What does this PR do?


## Test Plan
# What does this PR do?


## Test Plan
2025-06-25 20:10:46 -07:00

15 lines
434 B
TypeScript

/**
* Server-side configuration for the Llama Stack UI
* This file should only be imported in server components
*/
// Get backend URL from environment variable or default to localhost for development
export const BACKEND_URL =
process.env.LLAMA_STACK_BACKEND_URL ||
`http://localhost:${process.env.LLAMA_STACK_PORT || 8321}`;
export const serverConfig = {
backendUrl: BACKEND_URL,
} as const;
export default serverConfig;