Skip to content

Commit 441a76a

Browse files
committed
Fix indexpage not building by making it static (use cache)
1 parent cc2b4b7 commit 441a76a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
import { cacheLife } from "next/cache";
12
import fallback from "^/lib/autocomplete/fallback";
23
import Intro from "./_page/Intro";
34
import IndexPageClient from "./page.client";
45

56
export interface IndexProps {}
67

78
const IndexPage = async ({}: IndexProps) => {
9+
"use cache";
10+
11+
cacheLife("max");
12+
813
const fallbackSuggestions = await fallback();
914

1015
return (

0 commit comments

Comments
 (0)