Skip to main content
Module

x/aleph/types.ts>ServerApplication

The Full-stack Framework in Deno.
Very Popular
Go to Latest
interface ServerApplication
import { type ServerApplication } from "https://deno.land/x/aleph@v0.3.0-alpha.32/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, options?: { sourceCode?: string; }): Promise<void>
addDist(path: string, content: Uint8Array): Promise<void>
fetchModule(url: string): Promise<{ content: Uint8Array; contentType: string | null; }>
injectCode(stage: "compilation" | "hmr" | "ssr", transform: (url: string, code: string) => string): void