diff --git a/scripts/trends.ts b/scripts/trends.ts index c6ff63e0..627fb332 100644 --- a/scripts/trends.ts +++ b/scripts/trends.ts @@ -1,5 +1,5 @@ -import * as dotenv from '@std/dotenv'; import { z } from 'zod'; +import '@/config.ts'; import { updateTrendingEvents, @@ -9,12 +9,6 @@ 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);