···11+import { NextResponse } from "next/server";
22+33+export const dynamic = "force-dynamic";
44+55+export const maxDuration = 30; // to trick and not using the same function as the other ping route
66+77+export async function GET() {
88+ return NextResponse.json({ ping: "pong" }, { status: 200 });
99+}
1010+1111+export async function POST(req: Request) {
1212+ const body = await req.json();
1313+ return NextResponse.json({ ping: body }, { status: 200 });
1414+}
+2
apps/web/src/app/api/ping/route.ts
···2233export const dynamic = "force-dynamic";
4455+export const maxDuration = 25; // to trick and not using the same function as the other ping route
66+57export async function GET() {
68 return NextResponse.json({ ping: "pong" }, { status: 200 });
79}
+13
apps/web/src/app/api/ping/warn/route.ts
···11+import { NextResponse } from "next/server";
22+33+export const dynamic = "force-dynamic";
44+export const maxDuration = 20; // to trick and not using the same function as the other ping route
55+66+export async function GET() {
77+ return NextResponse.json({ ping: "pong" }, { status: 200 });
88+}
99+1010+export async function POST(req: Request) {
1111+ const body = await req.json();
1212+ return NextResponse.json({ ping: body }, { status: 200 });
1313+}