Skip to content

Commit

Permalink
fix(ETL): use POST over GET to prevent static generation during build
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaturner authored and jakeaturner committed Aug 20, 2024
1 parent d91b3e5 commit 8647c62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/api/etl/collect/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import AnalyticsDataCollector from "@/lib/AnalyticsDataCollector";

export async function GET() {
export async function POST() {
try {
const adc = new AnalyticsDataCollector();

Expand Down
2 changes: 1 addition & 1 deletion app/api/etl/process/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import AnalyticsDataProcessor from "@/lib/AnalyticsDataProcessor";

export async function GET() {
export async function POST() {
try {
const adp = new AnalyticsDataProcessor();

Expand Down
2 changes: 1 addition & 1 deletion app/api/ews/update/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import EarlyWarningSystem from "@/lib/EarlyWarningSystem";

export async function GET() {
export async function POST() {
try {
const ews = new EarlyWarningSystem();

Expand Down

0 comments on commit 8647c62

Please sign in to comment.