[]previous and next page

AbsoluteUrlOptions

Options of absoluteUrl.

Options of absoluteUrl.

Import#

ts
import type { AbsoluteUrlOptions } from "@shadow-js/dusk/server";

Signature#

ts
interface AbsoluteUrlOptions {
  /**
   * The app's `metadataBase` (an absolute http(s) origin). Used first; without it the request's origin is the base.
   */
  readonly metadataBase?: string | URL | undefined;
  /** The app's `trailingSlash` policy. `preserve` (the default) leaves the path as it is; the root is never changed. */
  readonly trailingSlash?: "never" | "always" | "preserve" | undefined;
}

Members#

Name Type Description
metadataBase? readonly metadataBase?: string | URL | undefined The app's metadataBase (an absolute http(s) origin). Used first; without it the request's origin is the base.
trailingSlash? readonly trailingSlash?: "never" | "always" | "preserve" | undefined The app's trailingSlash policy. preserve (the default) leaves the path as it is; the root is never changed.