Fix TypeScript error in with-mongodb example (#50094)
- Resolves #50084
The context parameter in the getServerSideProps function lacked a type, which led to a compile-time error. To resolve this, the GetServerSidePropsContext type from next was used to properly type the context parameter. This ensures type safety and allows TypeScript to catch potential errors at compile time.
Co-authored-by:
Steven <229881+styfle@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment