Skip to content

Commit aba94fe

Browse files
committed
remove unused max duration
1 parent eae229d commit aba94fe

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

‎apps/web/app/(app)/admin/page.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import { auth } from "@/app/api/auth/[...nextauth]/auth";
55
import { ErrorPage } from "@/components/ErrorPage";
66
import { isAdmin } from "@/utils/admin";
77

8-
// https://github.com/vercel/next.js/issues/72365#issuecomment-2692403955
9-
// export const maxDuration = Math.min(env.MAX_DURATION, 600);
108
export const maxDuration = 300;
119

1210
export default async function AdminPage() {

‎apps/web/app/(app)/reply-zero/page.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import { GmailProvider } from "@/providers/GmailProvider";
2828
import { cookies } from "next/headers";
2929
import { REPLY_ZERO_ONBOARDING_COOKIE } from "@/utils/cookies";
3030

31-
// https://github.com/vercel/next.js/issues/72365#issuecomment-2692403955
32-
// export const maxDuration = Math.min(env.MAX_DURATION, 600);
3331
export const maxDuration = 300;
3432

3533
export default async function ReplyTrackerPage(props: {

‎apps/web/env.ts

-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ export const env = createEnv({
6767
INTERNAL_API_KEY: z.string().optional(),
6868
WHITELIST_FROM: z.string().optional(),
6969
USE_BACKUP_MODEL: z.coerce.boolean().optional().default(false),
70-
// See Vercel limits here: https://vercel.com/docs/functions/configuring-functions/duration#duration-limits
71-
// Vercel Fluid Compute allows up to 800s, but other plans are capped at 300s or less
72-
MAX_DURATION: z.coerce.number().optional().default(800),
7370

7471
// license
7572
LICENSE_1_SEAT_VARIANT_ID: z.coerce.number().optional(),

‎turbo.json

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"USE_BACKUP_MODEL",
5454
"WHITELIST_FROM",
5555
"API_KEY_SALT",
56-
"MAX_DURATION",
5756
"FB_CONVERSION_API_ACCESS_TOKEN",
5857
"FB_PIXEL_ID",
5958

0 commit comments

Comments
 (0)