From 113bf19c65cab57f1b01195710a485f3db23d49d Mon Sep 17 00:00:00 2001 From: Weves Date: Tue, 10 Dec 2024 19:01:21 -0800 Subject: [PATCH] Remove dev-only check --- web/src/app/connector/oauth/callback/[source]/route.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/web/src/app/connector/oauth/callback/[source]/route.tsx b/web/src/app/connector/oauth/callback/[source]/route.tsx index 815ca5a5a..cfaea43d6 100644 --- a/web/src/app/connector/oauth/callback/[source]/route.tsx +++ b/web/src/app/connector/oauth/callback/[source]/route.tsx @@ -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