Skip to content

Commit

Permalink
fix(src): stop Next.js from attempting to statically generate routes …
Browse files Browse the repository at this point in the history
…under test

Closes #1076
Xunnamius committed Sep 18, 2024
1 parent f72ec1f commit a461e81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -516,7 +516,9 @@ export async function testApiHandler<NextResponseJsonType = any>({
ppr: false
},
// ? Next.js tries to do things it shouldn't unless we add these
supportsDynamicHTML: true
supportsDynamicHTML: true,
// @ts-ignore: the types for renderOpts are wrong?!
supportsDynamicResponse: true
},
// ? Some versions of Next.js poo the bed if we don't include this
// ? even though it doesn't appear in the types as far as I can

0 comments on commit a461e81

Please sign in to comment.