mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-26 11:58:28 +02:00
k
This commit is contained in:
@@ -63,6 +63,8 @@ export async function OPTIONS(
|
||||
async function handleRequest(request: NextRequest, path: string[]) {
|
||||
if (
|
||||
process.env.NODE_ENV === "production" &&
|
||||
// NOTE: Set this environment variable to 'true' for preview environments
|
||||
// Where you want finer-grained control over API access
|
||||
process.env.OVERRIDE_API_PRODUCTION !== "true"
|
||||
) {
|
||||
return NextResponse.json(
|
||||
|
Reference in New Issue
Block a user