Skip to content

Commit 0630543

Browse files
committed
Add maxDuration constant to page.tsx and list/page.tsx for consistent duration management
1 parent 277bb8a commit 0630543

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/list/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import React from "react";
22
import { getLibraries } from "@/lib/libraries";
33
import type { Metadata } from "next";
44

5+
export const maxDuration = 300;
6+
57
export const metadata: Metadata = {
68
title: "All Libraries - jsgrids",
79
description:

app/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import React from "react";
22
import { getLibraries } from "@/lib/libraries";
33
import IndexPage from "../components/IndexPage";
44

5+
export const maxDuration = 300;
6+
57
export default async function Page() {
68
const items = await getLibraries();
79
const ts = new Date().toISOString();

0 commit comments

Comments
 (0)