MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / inboxGetServerSideProps

Function inboxGetServerSideProps

apps/web/services/ssr/inbox.ts:5–25  ·  view source on GitHub ↗
(
  context: GetServerSidePropsContext,
  isSubDomainRouting: boolean
)

Source from the content-addressed store, hash-verified

3import { ssr, allowInbox } from 'services/ssr/common';
4
5export 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}

Callers

nothing calls this directly

Calls 3

ssrFunction · 0.90
RedirectToFunction · 0.90
NotFoundFunction · 0.90

Tested by

no test coverage detected