mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-27 18:50:41 +00:00
# What does this PR do? ## Test Plan # What does this PR do? ## Test Plan # What does this PR do? ## Test Plan
15 lines
434 B
TypeScript
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;
|