import { serveAsset } from "https://deno.land/x/cav@0.0.24/mod.ts";
Response factory for serving static assets. Asset resolution uses the provided ServeAssetOptions, the Request is only used for caching headers like ETag etc.
TypeScript (ts & tsx) assets will not be served. They will be treated as if they don't exist.
If the --unstable and --allow-write permissions are granted, the asset
preparation procedure will be started for the given assets directory, if it
hasn't already been started by a previous request. See the prepareAssets()
function for more information.
Parameters
req: Request
opt: ServeAssetOptions