Skip to content

Commit

Permalink
I guess it's not currently required, probably should be
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVann committed Jan 14, 2021
1 parent 5d83d70 commit daa29f1
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions @app/config/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defaultNumber, minLength, parseInteger, required } from "./validate";
import { defaultNumber, parseInteger, required } from "./validate";

// @ts-ignore
const packageJson = require("../../../package.json");
Expand All @@ -13,18 +13,9 @@ export const emailLegalText: string =
// Envvar here so we can override on the demo website
process.env.LEGAL_TEXT || "<Insert legal email footer text here >";

export const SECRET: string = minLength(
required({ value: process.env.SECRET, name: "SECRET" }),
64
).value;
export const SECRET: string | undefined = process.env.SECRET;

export const JWT_SECRET: string = minLength(
required({
value: process.env.JWT_SECRET,
name: "JWT_SECRET",
}),
64
).value;
export const JWT_SECRET: string | undefined = process.env.JWT_SECRET;

export const REDIS_URL: string | undefined = process.env.REDIS_URL;

Expand Down

0 comments on commit daa29f1

Please sign in to comment.