Skip to content

Commit

Permalink
Try to export config
Browse files Browse the repository at this point in the history
  • Loading branch information
istarkov committed Apr 22, 2024
1 parent 9482fed commit 325939d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/builder/app/routes/timeout-fun.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import type { ActionFunctionArgs } from "@remix-run/server-runtime";
export default function Logout() {
return <h1>HELLO</h1>;
}

// https://vercel.com/docs/functions/runtimes#max-duration
export const loader = async ({ request }: ActionFunctionArgs) => {
await new Promise((resolve) => setTimeout(resolve, 20000));
};

export const config = {
maxDuration: 30,
};

0 comments on commit 325939d

Please sign in to comment.