Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_nest/src/factorys/nest.factory.ts>NestFactory.useStaticAssets

Refer to nestjs to realize some common functions for Deno
Go to Latest
method NestFactory.useStaticAssets
import { NestFactory } from "https://deno.land/x/oak_nest@v1.13.16/src/factorys/nest.factory.ts";

Sets a base directory for public assets.

Examples

app.useStaticAssets('public')

Parameters

path: string
optional
options: StaticOptions = [UNSUPPORTED]