dummy key at build time
This commit is contained in:
@@ -2,4 +2,5 @@ import { env } from "~/env.mjs";
|
||||
|
||||
import OpenAI from "openai";
|
||||
|
||||
export const openai = new OpenAI({ apiKey: env.OPENAI_API_KEY ?? "" });
|
||||
// Set a dummy key so it doesn't fail at build time
|
||||
export const openai = new OpenAI({ apiKey: env.OPENAI_API_KEY ?? "dummy-key" });
|
||||
|
||||
Reference in New Issue
Block a user