mirror of
https://github.com/langgenius/dify.git
synced 2026-05-31 06:06:20 +08:00
10 lines
287 B
TypeScript
10 lines
287 B
TypeScript
import { env } from '@/env'
|
|
|
|
import 'server-only'
|
|
|
|
const withoutTrailingSlash = (value: string) => value.endsWith('/') ? value.slice(0, -1) : value
|
|
|
|
export const SERVER_CONSOLE_API_PREFIX = env.CONSOLE_API_URL
|
|
? `${withoutTrailingSlash(env.CONSOLE_API_URL)}/console/api`
|
|
: undefined
|