Skip to content

Commit

Permalink
cherry pick handleRequest fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LostVector committed Dec 12, 2024
1 parent 76595fa commit 7de3534
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions web/src/app/api/[...path]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,7 @@ export async function OPTIONS(
}

async function handleRequest(request: NextRequest, path: string[]) {
if (
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"
) {
if (process.env.NODE_ENV !== "development") {
return NextResponse.json(
{
message:
Expand Down

0 comments on commit 7de3534

Please sign in to comment.