MCPcopy
hub / github.com/learnhouse/learnhouse / getLEARNHOUSE_BACKEND_URL

Function getLEARNHOUSE_BACKEND_URL

apps/web/services/config/config.ts:85–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83const getLEARNHOUSE_HTTP_PROTOCOL = () =>
84 (getConfig('NEXT_PUBLIC_LEARNHOUSE_HTTPS') === 'true') ? 'https://' : 'http://'
85const getLEARNHOUSE_BACKEND_URL = () => getConfig('NEXT_PUBLIC_LEARNHOUSE_BACKEND_URL', 'http://localhost/')
86const getLEARNHOUSE_DOMAIN = () => {
87 // 1. Env var (backward compat for existing deploys)
88 const envVal = getConfig('NEXT_PUBLIC_LEARNHOUSE_DOMAIN')

Callers 3

config.tsFile · 0.85
deriveAPIUrlFunction · 0.85
getBackendUrlFunction · 0.85

Calls 1

getConfigFunction · 0.85

Tested by

no test coverage detected