Skip to main content
Module

x/fastro/server/types.ts>SSR

Fast and simple web application framework for deno
Go to Latest
interface SSR
import { type SSR } from "https://deno.land/x/fastro@v0.61.2/server/types.ts";

Properties

dir: (dir: string) => SSR
title: (title: string) => SSR
meta: (meta: string) => SSR
script: (script: string) => SSR
style: (style: string) => SSR
render: () => Response
_createBundle: (
bundle?: string,
rootComponent?: string,
rootTSX?: string,
) => void

Used by internal system to hydrate and create bundle on application initiation

_setRequest: (req: Request) => void

Used by internal system to set request on response init to get the url. This url is used to get the hydrated and bundled JS file.

_getBundleName: () => string
setBundleName: (name: string) => SSR