Skip to content

Commit b291c3f

Browse files
committed
feat: enable PPR for instant response
1 parent 8653747 commit b291c3f

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export const metadata: Metadata = {
2121
description: "Managing your Database Playground instance.",
2222
};
2323

24+
export const experimental_ppr = true;
25+
2426
export default async function RootLayout({
2527
children,
2628
}: Readonly<{

next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const nextConfig: NextConfig = {
99
swcPlugins: [
1010
["@swc-contrib/plugin-graphql-codegen-client-preset", { artifactDirectory: "./gql", gqlTagName: "graphql" }],
1111
],
12+
ppr: "incremental",
1213
},
1314
};
1415

0 commit comments

Comments
 (0)