Skip to content

Commit ada6e53

Browse files
fix: disable axiomClient gracefully when no API key is provided
1 parent 6bbfed3 commit ada6e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const messageLogger = createConsola({
2323
},
2424
})
2525

26-
const axiomClient = new Axiom({
26+
const axiomClient = import.meta.env.AXIOM_API_KEY && new Axiom({
2727
token: import.meta.env.AXIOM_API_KEY,
2828
})
2929

0 commit comments

Comments
 (0)