Skip to content

Commit

Permalink
fix(web): gh private key
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrnt committed Aug 26, 2024
1 parent 1d1fdfd commit 582fd0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/env/schema.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const serverSchema = z.object({
GITHUB_APP_PRIVATE_KEY: z
.string()
.optional()
.transform((s) => s.replace(/\\n/g, "\n")),
.transform((s) => (s ? s.replace(/\\n/g, "\n") : undefined)),
OPENAI_API_KEY: z.string().optional(),
});

Expand Down

0 comments on commit 582fd0a

Please sign in to comment.