MCPcopy
hub / github.com/ElricLiu/AutoGPT-Next-Web / requiredAuthEnabledForProduction

Function requiredAuthEnabledForProduction

src/env/schema.mjs:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 process.env.NEXT_PUBLIC_FF_AUTH_ENABLED === "true";
8
9const requiredAuthEnabledForProduction = () => {
10 return isProdutionAndAuthEnabled
11 ? z.string().min(1).trim()
12 : z.string().optional();
13};
14
15const stringToBoolean = () => {
16 return z.preprocess((str) => str === "true", z.boolean());

Callers 1

schema.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected