From e1f494c5169ef764ac02c84e889b9b33691e6e5f Mon Sep 17 00:00:00 2001 From: LoV432 Date: Fri, 17 Nov 2023 22:31:40 +0500 Subject: [PATCH] fix: build error --- app/api/get-pppoe-status/route.ts | 2 +- app/api/get-speed/route.ts | 2 +- app/api/get-uptime/route.ts | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/api/get-pppoe-status/route.ts b/app/api/get-pppoe-status/route.ts index ed6e8f5..f39665a 100644 --- a/app/api/get-pppoe-status/route.ts +++ b/app/api/get-pppoe-status/route.ts @@ -1,5 +1,5 @@ import { getPppoeStatus } from '@/lib/get-pppoe-status'; - +export const dynamic = 'force-dynamic'; export async function GET() { const pppoeStatus = await getPppoeStatus(); diff --git a/app/api/get-speed/route.ts b/app/api/get-speed/route.ts index f7dfb14..fea8852 100644 --- a/app/api/get-speed/route.ts +++ b/app/api/get-speed/route.ts @@ -1,10 +1,10 @@ import { getToken } from '@/lib/get-token'; +export const dynamic = 'force-dynamic'; type speedReturnType = { id: number; result?: [0, { code: string; stdout: string }?]; }; -export async function POST() {} export async function GET() { let speed = await getSpeed(); diff --git a/app/api/get-uptime/route.ts b/app/api/get-uptime/route.ts index c9ddac1..c1795d1 100644 --- a/app/api/get-uptime/route.ts +++ b/app/api/get-uptime/route.ts @@ -1,6 +1,5 @@ import { getUptime } from '@/lib/get-uptime'; - -export async function POST() {} +export const dynamic = 'force-dynamic'; export async function GET() { let uptime = await getUptime();