From 5d810d373ec4d9def3a1876923036a172e66d651 Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Wed, 11 Dec 2024 13:32:09 -0800 Subject: [PATCH] k --- web/src/app/api/[...path]/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/app/api/[...path]/route.ts b/web/src/app/api/[...path]/route.ts index 0ebd8210a..9410bf905 100644 --- a/web/src/app/api/[...path]/route.ts +++ b/web/src/app/api/[...path]/route.ts @@ -61,11 +61,11 @@ export async function OPTIONS( } async function handleRequest(request: NextRequest, path: string[]) { - if (process.env.NODE_ENV !== "development") { + if (process.env.NODE_ENV === "production") { return NextResponse.json( { message: - "This API is only available in development mode. In production, something else (e.g. nginx) should handle this.", + "This API is only available in development or preview mode. In production, something else (e.g. nginx) should handle this.", }, { status: 404 } );