Skip to content

Commit

Permalink
Add type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrehsu committed Jan 25, 2021
1 parent 4be78ec commit fdd9b46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/next/next-server/server/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,9 @@ export async function renderToHTML(

try {
data = await getServerSideProps({
req,
req: req as IncomingMessage & {
cookies: { [key: string]: string }
},
res,
query,
resolvedUrl: renderOpts.resolvedUrl as string,
Expand Down

0 comments on commit fdd9b46

Please sign in to comment.