From d7f8cf8f18e06b64b1dd02b285a751acfbbd6203 Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Wed, 11 Dec 2024 13:36:10 -0800 Subject: [PATCH] testing --- web/src/app/api/[...path]/route.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web/src/app/api/[...path]/route.ts b/web/src/app/api/[...path]/route.ts index 9410bf90577f..752415abe93a 100644 --- a/web/src/app/api/[...path]/route.ts +++ b/web/src/app/api/[...path]/route.ts @@ -61,15 +61,15 @@ export async function OPTIONS( } async function handleRequest(request: NextRequest, path: string[]) { - if (process.env.NODE_ENV === "production") { - return NextResponse.json( - { - message: - "This API is only available in development or preview mode. In production, something else (e.g. nginx) should handle this.", - }, - { status: 404 } - ); - } + // if (process.env.NODE_ENV === "production") { + // return NextResponse.json( + // { + // message: + // "This API is only available in development or preview mode. In production, something else (e.g. nginx) should handle this.", + // }, + // { status: 404 } + // ); + // } try { const backendUrl = new URL(`${INTERNAL_URL}/${path.join("/")}`);