Skip to content

Commit

Permalink
fix(web): gh private key loading
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrnt committed Aug 26, 2024
1 parent 69a7f5e commit 1d1fdfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/web/src/env/schema.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ export const serverSchema = z.object({
HASHING_SECRET: z.string().min(1),
ENABLE_GITHUB_APP: z.boolean().optional(),
GITHUB_APP_ID: z.string().optional(),
GITHUB_APP_PRIVATE_KEY: z.string().optional(),
GITHUB_APP_PRIVATE_KEY: z
.string()
.optional()
.transform((s) => s.replace(/\\n/g, "\n")),
OPENAI_API_KEY: z.string().optional(),
});

Expand Down

0 comments on commit 1d1fdfd

Please sign in to comment.