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

Function checkEmailFromDomain

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

Source from the content-addressed store, hash-verified

501};
502
503const checkEmailFromDomain = (env: Env): string[] => {
504 if (!isPlaceholderFromAddress(env.EMAIL_FROM)) {
505 return [];
506 }
507
508 return [
509 `EMAIL_FROM "${env.EMAIL_FROM}" uses a placeholder domain. ` +
510 "Set it to an address on a domain you control and verified with the provider.",
511 ];
512};
513
514/**
515 * Rejects placeholder secrets in production. The env-example files ship

Callers 1

checkEmailProviderFunction · 0.85

Calls 1

isPlaceholderFromAddressFunction · 0.85

Tested by

no test coverage detected