Skip to content

Commit

Permalink
feat: add AUTH_ORIGIN env
Browse files Browse the repository at this point in the history
  • Loading branch information
steinerkelvin committed Oct 3, 2024
1 parent cc2b888 commit ba284ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/commune-governance/src/env.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { createEnv } from "@t3-oss/env-nextjs";
import { z } from "zod";

const AUTH_ORIGIN_DEFAULT = "https://governance.communeai.org";

export const env = createEnv({
shared: {
NODE_ENV: z
Expand All @@ -13,6 +15,7 @@ export const env = createEnv({
*/
server: {
JWT_SECRET: z.string().min(8), // Secret used to sign the JWT
AUTH_ORIGIN: z.string().default(AUTH_ORIGIN_DEFAULT), // Origin URI used in the statement signed by the user to authenticate
PINATA_JWT: z.string(),
POSTGRES_URL: z.string().url(),
},
Expand Down

0 comments on commit ba284ef

Please sign in to comment.