mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-07 19:38:19 +02:00
Remove dev-only check
This commit is contained in:
parent
6026536110
commit
113bf19c65
@ -5,13 +5,6 @@ import { NextRequest, NextResponse } from "next/server";
|
||||
// For some reason Egnyte doesn't work when using /api, so leaving this as is for now
|
||||
// If we do try and remove this, make sure we test the Egnyte connector oauth flow
|
||||
export async function GET(request: NextRequest) {
|
||||
if (process.env.NODE_ENV !== "development") {
|
||||
return NextResponse.json(
|
||||
{ message: "This API is only available in development mode." },
|
||||
{ status: 404 }
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
const backendUrl = new URL(INTERNAL_URL);
|
||||
// Copy path and query parameters from incoming request
|
||||
|
Loading…
x
Reference in New Issue
Block a user