(context)
| 43 | } |
| 44 | |
| 45 | export const getServerSideProps: GetServerSideProps<Props> = async (context) => { |
| 46 | const req = context.req as any |
| 47 | const res = context.res as any |
| 48 | const graphqlExplorerUrl = |
| 49 | process.env.NODE_ENV === 'production' |
| 50 | ? 'https://graphql.github.com/explorer' |
| 51 | : 'http://localhost:3000' |
| 52 | |
| 53 | return { |
| 54 | props: { |
| 55 | mainContext: await getMainContext(req, res), |
| 56 | graphqlExplorerUrl, |
| 57 | }, |
| 58 | } |
| 59 | } |
nothing calls this directly
no test coverage detected