Module

x/aleph/types.ts>ServerApplication

The Full-stack Framework in Deno.
Very Popular
Go to Latest
interface ServerApplication
import { type ServerApplication } from "https://dotland.deno.dev/x/aleph@v0.3.0-alpha.33/types.ts";

An interface that aligns to the parts of the aleph server's Application.

Properties

readonly
mode: "development" | "production"
readonly
workingDir: string
readonly
buildDir: string
readonly
config: Required<Config>
readonly
importMap: ImportMap

Methods

addModule(url: string, sourceCode?: string): Promise<void>
addDist(path: string, content: Uint8Array): Promise<void>
fetch(url: string): Promise<{ content: Uint8Array; contentType: string | null; }>
injectCode(stage: "compilation" | "hmr" | "ssr", transform: (url: string, code: string) => string): void