mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-27 16:30:56 +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
|
// 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
|
// If we do try and remove this, make sure we test the Egnyte connector oauth flow
|
||||||
export async function GET(request: NextRequest) {
|
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 {
|
try {
|
||||||
const backendUrl = new URL(INTERNAL_URL);
|
const backendUrl = new URL(INTERNAL_URL);
|
||||||
// Copy path and query parameters from incoming request
|
// Copy path and query parameters from incoming request
|
||||||
|
Loading…
x
Reference in New Issue
Block a user