From e7f5e563f58d892f256408604aca13b5a692bc6f Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Tue, 1 Oct 2024 13:59:21 -0300 Subject: [PATCH] feat: load dotenv in script/trends.ts --- scripts/trends.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/trends.ts b/scripts/trends.ts index 6600f7e2..c6ff63e0 100644 --- a/scripts/trends.ts +++ b/scripts/trends.ts @@ -1,3 +1,4 @@ +import * as dotenv from '@std/dotenv'; import { z } from 'zod'; import { @@ -8,6 +9,12 @@ import { updateTrendingZappedEvents, } from '@/trends.ts'; +await dotenv.load({ + export: true, + defaultsPath: null, + examplePath: null, +}); + const trendSchema = z.enum(['pubkeys', 'zapped_events', 'events', 'hashtags', 'links']); const trends = trendSchema.array().parse(Deno.args);