interface SSRLoadedRenderer {
    clientEntrypoint?: string;
    jsxImportSource?: string;
    jsxTransformOptions?: JSXTransformFn;
    name: string;
    serverEntrypoint: string;
    ssr: {
        check: AsyncRendererComponentFn<boolean>;
        renderHydrationScript?: (() => string);
        renderToStaticMarkup: AsyncRendererComponentFn<{
            attrs?: Record<string, string>;
            html: string;
        }>;
        supportsAstroStaticSlot?: boolean;
    };
}

Hierarchy (view full)

Properties

clientEntrypoint?: string

Import entrypoint for the client/browser renderer.

jsxImportSource?: string

Deprecated

Vite plugins should transform the JSX instead

jsxTransformOptions?: JSXTransformFn

Deprecated

Vite plugins should transform the JSX instead

name: string

Name of the renderer.

serverEntrypoint: string

Import entrypoint for the server/build/ssr renderer.

ssr: {
    check: AsyncRendererComponentFn<boolean>;
    renderHydrationScript?: (() => string);
    renderToStaticMarkup: AsyncRendererComponentFn<{
        attrs?: Record<string, string>;
        html: string;
    }>;
    supportsAstroStaticSlot?: boolean;
}

Type declaration

  • check: AsyncRendererComponentFn<boolean>
  • Optional renderHydrationScript?: (() => string)

    If provided, Astro will call this function and inject the returned script in the HTML before the first component handled by this renderer.

    This feature is needed by some renderers (in particular, by Solid). The Solid official hydration script sets up a page-level data structure. It is mainly used to transfer data between the server side render phase and the browser application state. Solid Components rendered later in the HTML may inject tiny scripts into the HTML that call into this page-level data structure.

      • (): string
      • Returns string

  • renderToStaticMarkup: AsyncRendererComponentFn<{
        attrs?: Record<string, string>;
        html: string;
    }>
  • Optional supportsAstroStaticSlot?: boolean