Skip to content

Commit

Permalink
feat: add dotenv debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Kieran Klukas <[email protected]>
  • Loading branch information
taciturnaxolotl committed Feb 9, 2024
1 parent eb6f202 commit 9bf9d1e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion utils/vrite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ import { createClient } from "@vrite/sdk/api";

import dotenv from "dotenv";

dotenv.config();
const result = dotenv.config();

if (result.error) {
console.error(result.error);
throw result.error;
} else {
console.log(result.parsed);
}

const vrite = createClient({
token: process.env.VRITE_ACCESS_TOKEN || "",
Expand Down

0 comments on commit 9bf9d1e

Please sign in to comment.