Skip to content

Commit cb7d5e2

Browse files
authored
fix: upd retrieving GROQ key from .env (#853)
* fix: upd retrieving GROQ key from .env * chore: changeset * chore: upd qroq api key retrieval
1 parent 4c3446b commit cb7d5e2

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.changeset/hip-starfishes-serve.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@lingo.dev/_compiler": patch
3+
"lingo.dev": patch
4+
---
5+
6+
Fix groq api key retrieval from .env

packages/compiler/src/utils/groq.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ export function getGroqKeyFromRc() {
1414

1515
// retrieve key from process.env, with .env file as fallback
1616
export function getGroqKeyFromEnv() {
17-
const ephemeralEnv = {
18-
GROQ_API_KEY: process.env.GROQ_API_KEY,
19-
} as {
17+
const ephemeralEnv = {} as {
2018
GROQ_API_KEY?: string;
2119
};
2220
dotenv.config({ processEnv: ephemeralEnv });

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy