Skip to content

Commit

Permalink
fix(src): add missing metadata not revealed by type information
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Jan 16, 2024
1 parent a1a1f69 commit 90ff665
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,16 @@ export async function testApiHandler<NextResponseJsonType = any>({
preview: {} as any
},
renderOpts: {
// ? Next.js poos the bed if we don't include this
experimental: {
ppr: false
},
// ? Next.js tries to do things it shouldn't unless we add this
supportsDynamicHTML: true
},
// ? Next.js poos the bed if we don't include this
// @ts-expect-error: the types for renderOpts are wrong!
staticGenerationContext: {
supportsDynamicHTML: true
}
}
);
Expand Down

0 comments on commit 90ff665

Please sign in to comment.