From 8647c62353f6827ff130fe615c91dd3c1a91779c Mon Sep 17 00:00:00 2001 From: Ethan Turner Date: Mon, 19 Aug 2024 19:20:45 -0700 Subject: [PATCH] fix(ETL): use POST over GET to prevent static generation during build --- app/api/etl/collect/route.ts | 2 +- app/api/etl/process/route.ts | 2 +- app/api/ews/update/route.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/etl/collect/route.ts b/app/api/etl/collect/route.ts index b551682..16b51d2 100644 --- a/app/api/etl/collect/route.ts +++ b/app/api/etl/collect/route.ts @@ -1,6 +1,6 @@ import AnalyticsDataCollector from "@/lib/AnalyticsDataCollector"; -export async function GET() { +export async function POST() { try { const adc = new AnalyticsDataCollector(); diff --git a/app/api/etl/process/route.ts b/app/api/etl/process/route.ts index 9635abc..07d4e6e 100644 --- a/app/api/etl/process/route.ts +++ b/app/api/etl/process/route.ts @@ -1,6 +1,6 @@ import AnalyticsDataProcessor from "@/lib/AnalyticsDataProcessor"; -export async function GET() { +export async function POST() { try { const adp = new AnalyticsDataProcessor(); diff --git a/app/api/ews/update/route.ts b/app/api/ews/update/route.ts index ee84c27..5b9a0ea 100644 --- a/app/api/ews/update/route.ts +++ b/app/api/ews/update/route.ts @@ -1,6 +1,6 @@ import EarlyWarningSystem from "@/lib/EarlyWarningSystem"; -export async function GET() { +export async function POST() { try { const ews = new EarlyWarningSystem();