From d12879b60f7b809f72a50051be8c956ac084b864 Mon Sep 17 00:00:00 2001 From: Altay Date: Sun, 10 Dec 2023 23:33:11 +0300 Subject: [PATCH] feat: add DEEPGRAM and OPENAI keys to env --- .env.example | 5 ++++- env.mjs | 2 ++ lib/services/episode-content-generator.ts | 0 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 lib/services/episode-content-generator.ts diff --git a/.env.example b/.env.example index 787a424..9518038 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,5 @@ NEXT_PUBLIC_SUPABASE_URL= -NEXT_PUBLIC_SUPABASE_ANON_KEY= \ No newline at end of file +NEXT_PUBLIC_SUPABASE_ANON_KEY= + +DEEPGRAM_API_KEY= +OPENAI_API_KEY= diff --git a/env.mjs b/env.mjs index 32ea9a1..2af306d 100644 --- a/env.mjs +++ b/env.mjs @@ -15,9 +15,11 @@ const getGitSha = () => { }; const envSchema = z.object({ + DEEPGRAM_API_KEY: z.string().min(1), GIT_SHA: z.string().min(1).default(getGitSha()), NEXT_PUBLIC_SUPABASE_ANON_KEY: z.string(), NEXT_PUBLIC_SUPABASE_URL: z.string(), + OPENAI_API_KEY: z.string().min(1), // We don't have these configurations yet. SUPABASE_SERVICE_ROLE_KEY: z.string().default(''), SUPABASE_URL: z.string().default(''), diff --git a/lib/services/episode-content-generator.ts b/lib/services/episode-content-generator.ts new file mode 100644 index 0000000..e69de29