( context: GetServerSidePropsContext, isSubDomainRouting: boolean )
| 3 | import { ssr, allowInbox } from 'services/ssr/common'; |
| 4 | |
| 5 | export async function inboxGetServerSideProps( |
| 6 | context: GetServerSidePropsContext, |
| 7 | isSubDomainRouting: boolean |
| 8 | ) { |
| 9 | const { props, notFound, ...rest } = await ssr(context, allowInbox); |
| 10 | |
| 11 | if (rest.redirect) { |
| 12 | return RedirectTo(rest.location); |
| 13 | } |
| 14 | |
| 15 | if (notFound || !props) { |
| 16 | return NotFound(); |
| 17 | } |
| 18 | |
| 19 | return { |
| 20 | props: { |
| 21 | ...props, |
| 22 | isSubDomainRouting, |
| 23 | }, |
| 24 | }; |
| 25 | } |
nothing calls this directly
no test coverage detected