mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-29 17:20:44 +02:00
update config
This commit is contained in:
@ -61,15 +61,18 @@ export async function OPTIONS(
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function handleRequest(request: NextRequest, path: string[]) {
|
async function handleRequest(request: NextRequest, path: string[]) {
|
||||||
// if (process.env.NODE_ENV === "production") {
|
if (
|
||||||
// return NextResponse.json(
|
process.env.NODE_ENV === "production" &&
|
||||||
// {
|
process.env.OVERRIDE_API_PRODUCTION !== "true"
|
||||||
// message:
|
) {
|
||||||
// "This API is only available in development or preview mode. In production, something else (e.g. nginx) should handle this.",
|
return NextResponse.json(
|
||||||
// },
|
{
|
||||||
// { status: 404 }
|
message:
|
||||||
// );
|
"This API is only available in development ormode. In production, something else (e.g. nginx) should handle this.",
|
||||||
// }
|
},
|
||||||
|
{ status: 404 }
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const backendUrl = new URL(`${INTERNAL_URL}/${path.join("/")}`);
|
const backendUrl = new URL(`${INTERNAL_URL}/${path.join("/")}`);
|
||||||
|
Reference in New Issue
Block a user