Content-Length: 281703 | pFad | http://github.com/lingodotdev/lingo.dev/commit/cb7d5e213282c00af658159472183a763f84ca3d

CC fix: upd retrieving GROQ key from .env (#853) · lingodotdev/lingo.dev@cb7d5e2 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lingodotdev/lingo.dev/commit/cb7d5e213282c00af658159472183a763f84ca3d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy