mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-30 09:40:50 +02:00
k
This commit is contained in:
@ -61,11 +61,11 @@ export async function OPTIONS(
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function handleRequest(request: NextRequest, path: string[]) {
|
async function handleRequest(request: NextRequest, path: string[]) {
|
||||||
if (process.env.NODE_ENV !== "development") {
|
if (process.env.NODE_ENV === "production") {
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{
|
{
|
||||||
message:
|
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 }
|
{ status: 404 }
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user