MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / checkUrls

Function checkUrls

apps/api/src/config/env/validate.ts:371–385  ·  view source on GitHub ↗
(env: Env)

Source from the content-addressed store, hash-verified

369};
370
371const checkUrls = (env: Env): string[] => {
372 const requireHttps = env.NODE_ENV === "production";
373
374 return [
375 ...checkHttpUrl(env.FRONTEND_URL, "FRONTEND_URL", requireHttps),
376 ...checkHttpUrl(env.PUBLIC_API_URL, "PUBLIC_API_URL", requireHttps),
377 ...(env.NOTIFICATION_SETTINGS_URL === ""
378 ? []
379 : checkHttpUrl(
380 env.NOTIFICATION_SETTINGS_URL,
381 "NOTIFICATION_SETTINGS_URL",
382 requireHttps
383 )),
384 ];
385};
386
387/**
388 * MFA_ENCRYPTION_KEY must be present in production so a misconfigured

Callers 1

checkInvariantsFunction · 0.85

Calls 1

checkHttpUrlFunction · 0.85

Tested by

no test coverage detected