Skip to content

Commit

Permalink
docs(examples): Fix build error with missing key
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmytton committed Feb 10, 2024
1 parent 9476b08 commit e109dd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/nextjs-14-openai/app/api/chat/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const aj = arcjet({

// OpenAI client
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
apiKey: process.env.OPENAI_API_KEY ?? "OPENAI_KEY_MISSING",
});

// Edge runtime allows for streaming responses
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs-14-openai/app/api/chat_userid/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const aj = arcjet({

// OpenAI client
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
apiKey: process.env.OPENAI_API_KEY ?? "OPENAI_KEY_MISSING",
});

// Edge runtime allows for streaming responses
Expand Down

0 comments on commit e109dd1

Please sign in to comment.