Skip to content

Commit

Permalink
fix: Bump timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Dec 13, 2023
1 parent 94a358a commit edc1502
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/api/v0/check_email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import { sentryException } from "@/util/sentry";
import { supabaseAdmin } from "@/util/supabaseServer";
import { Tables } from "@/supabase/database.types";

const TIMEOUT = 50000;
// https://vercel.com/changelog/serverless-functions-can-now-run-up-to-5-minutes
export const maxDuration = 30000;

const TIMEOUT = 90000;
const MAX_PRIORITY = 5; // Higher is faster, 5 is max.

const POST = async (
Expand Down Expand Up @@ -123,7 +126,6 @@ const POST = async (
const d9 = performance.now() - startTime;
console.log(`[🐢] Final response: ${Math.round(d9)}ms`);
res.status(200).json(output);
res.end();
}
},
{
Expand Down

1 comment on commit edc1502

@vercel
Copy link

@vercel vercel bot commented on edc1502 Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.