Skip to main content
Module

x/momentum/static-files/static-files-config.ts>StaticFilesConfig

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
interface StaticFilesConfig
import { type StaticFilesConfig } from "https://deno.land/x/momentum@v0.8.2/static-files/static-files-config.ts";

Properties

contentRoot: string

Path from which to serve static files. By default this is /content

serverRoot: string

Path on the server where the static files are located. By default this is /src/content

optional
mimeMap: Record<string, string>

Map of custom mime types by file extension