-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvercel.ts
More file actions
37 lines (35 loc) · 781 Bytes
/
vercel.ts
File metadata and controls
37 lines (35 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { type VercelConfig } from "@vercel/config/v1";
import { buildCronRoutes } from "@/bot/crons/config";
export const config: VercelConfig = {
framework: "nextjs",
crons: [
{
path: "/api/discord/gateway",
schedule: "*/9 * * * *",
},
...buildCronRoutes(),
],
functions: {
"src/app/api/tasks/route.ts": {
maxDuration: 600,
experimentalTriggers: [
{
type: "queue/v2beta",
topic: "tasks",
},
],
},
"src/app/api/discord/events/route.ts": {
maxDuration: 600,
experimentalTriggers: [
{
type: "queue/v2beta",
topic: "discord-events",
},
],
},
"src/app/api/[[...route]]/route.ts": {
maxDuration: "max",
},
},
};