We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 408dc2e commit 3fc8b7bCopy full SHA for 3fc8b7b
src/utils/studio.ts
@@ -30,7 +30,8 @@ export function resolveStudioCollection(
30
): void {
31
/* @ts-expect-error - studio is not typed */
32
const studioAIConfig: StudioAIConfig = nuxt.options.studio?.ai || {}
33
- if (!studioAIConfig.apiKey) {
+ const apiKey = studioAIConfig.apiKey || process.env.AI_GATEWAY_API_KEY
34
+ if (!apiKey) {
35
return
36
}
37
0 commit comments