Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
LoV432 committed Nov 17, 2023
1 parent 146a171 commit e1f494c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/api/get-pppoe-status/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getPppoeStatus } from '@/lib/get-pppoe-status';

export const dynamic = 'force-dynamic';
export async function GET() {
const pppoeStatus = await getPppoeStatus();

Expand Down
2 changes: 1 addition & 1 deletion app/api/get-speed/route.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
3 changes: 1 addition & 2 deletions app/api/get-uptime/route.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit e1f494c

Please sign in to comment.