Skip to content

Commit 7a7be7f

Browse files
committed
fix(cli): fixed apiKey null error issue
1 parent 5844567 commit 7a7be7f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/proud-panthers-taste.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"replexica": patch
3+
---
4+
5+
fix ~/.replexicarc apiKey nullability issue when loading settings

packages/cli/src/services/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const settingsFilePath = path.join(homedir, settingsFile);
1212

1313
const settingsSchema = Z.object({
1414
auth: Z.object({
15-
apiKey: Z.string().nullable(),
15+
apiKey: Z.string().optional(),
1616
apiUrl: Z.string().default('https://engine.replexica.com'),
1717
webUrl: Z.string().default('https://replexica.com'),
1818
}),

0 commit comments

Comments
 (0)