๐Ÿ“ฆ noxify / vite-rsc-ssg-renoun

๐Ÿ“„ shared.tsx ยท 18 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18/**
 * The directory containing all page and layout files for file-based routing.
 */
export const PAGES_DIR = 'src/pages'

/**
 * The file extension/postfix for React Server Component (RSC) payloads.
 */
export const RSC_POSTFIX = '_.rsc'

/**
 * The payload type for React Server Components (RSC) streaming.
 * Contains the root React node to be rendered.
 */
export type RscPayload = {
  root: React.ReactNode
}