mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-07 21:50:17 +02:00
reverse commit (fix later)
This commit is contained in:
parent
76595facef
commit
d23fca96c4
@ -61,12 +61,7 @@ export async function OPTIONS(
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function handleRequest(request: NextRequest, path: string[]) {
|
async function handleRequest(request: NextRequest, path: string[]) {
|
||||||
if (
|
if (process.env.NODE_ENV !== "development") {
|
||||||
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(
|
return NextResponse.json(
|
||||||
{
|
{
|
||||||
message:
|
message:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user