Skip to content

Commit

Permalink
Remove dev-only check
Browse files Browse the repository at this point in the history
  • Loading branch information
Weves committed Dec 11, 2024
1 parent 6026536 commit 113bf19
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions web/src/app/connector/oauth/callback/[source]/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 113bf19

Please sign in to comment.