Skip to content

Commit

Permalink
Revert "Enable local development with deployed environment with a que…
Browse files Browse the repository at this point in the history
…ry string flag."

This reverts commit 8b9336f.
  • Loading branch information
vinaymavi committed Jan 2, 2024
1 parent 8b9336f commit 243070e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/auth/apis/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ export async function GET(req: NextRequest) {
const code = searchParams.get("code");
// TODO: We can move this call to server.ts file
const resp = await fetch(
`${process.env.API_SERVER}/auth/createToken?code=${code} ${
process.env.NODE_ENV === "development" ? "&devreq=true" : ""
}`,
`${process.env.API_SERVER}/auth/createToken?code=${code}`,
{ next: { revalidate: 3600 } },
);

Expand Down

0 comments on commit 243070e

Please sign in to comment.