Allow CRON_SECRET to be optional

This commit is contained in:
2024-12-31 19:38:38 -06:00
parent ef44d6c1ba
commit fbe2834a0a

2
src/env/schema.mjs vendored
View File

@@ -6,7 +6,7 @@ import { z } from "zod";
* This way you can ensure the app isn't built with invalid env vars.
*/
export const serverSchema = z.object({
CRON_SECRET: z.string(),
CRON_SECRET: z.string().nullish(),
GITHUB_API_TOKEN: z.string(),
DIRECTUS_API_TOKEN: z.string(),
DIRECTUS_REVALIDATE_KEY: z.string(),