Skip to main content
Module

x/cav/mod.ts>ServeBundleOptions

A server framework for Deno
Go to Latest
interface ServeBundleOptions
Re-export
import { type ServeBundleOptions } from "https://deno.land/x/cav@0.2.0-alpha.7/mod.ts";

Properties

optional
cwd: string

If provided, this sets the current working directory when looking for the bundle. If a file://, http://, or https:// path is provided, the parent folder of the path is used. This is useful if you want to serve assets relative to the current file using import.meta.url. If the url option is also a file://, http://, or https:// url, this option is ignored. Default: "."

url: string

The path of the file to bundle. If this is an absolute URL (starts with file://, http://, or https://), the cwd option is ignored. This option is required.