mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
update conditional (#3446)
This commit is contained in:
parent
d23fca96c4
commit
a9516202fe
@ -61,7 +61,12 @@ export async function OPTIONS(
|
||||
}
|
||||
|
||||
async function handleRequest(request: NextRequest, path: string[]) {
|
||||
if (process.env.NODE_ENV !== "development") {
|
||||
if (
|
||||
process.env.NODE_ENV !== "development" &&
|
||||
// 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(
|
||||
{
|
||||
message:
|
||||
|
Loading…
x
Reference in New Issue
Block a user