ChainContext
Request values the generator functions receive.
Request values the generator functions receive.
Import#
ts
import type { ChainContext } from "@shadow-js/dusk/server";
Signature#
ts
interface ChainContext {
/** The raw query string as a record. */
readonly search: Readonly<Record<string, string | readonly string[]>>;
/** The page's pathname, for a `./` canonical (Next's rule). `/` when omitted. */
readonly pathname?: string | undefined;
/** The app's `trailingSlash` policy, applied to canonical and alternate URLs on the app's origin. */
readonly trailingSlash?: "never" | "always" | "preserve" | undefined;
}
Members#
| Name | Type | Description |
|---|---|---|
search |
readonly search: Readonly<Record<string, string | readonly string[]>> |
The raw query string as a record. |
pathname? |
readonly pathname?: string | undefined |
The page's pathname, for a ./ canonical (Next's rule). / when omitted. |
trailingSlash? |
readonly trailingSlash?: "never" | "always" | "preserve" | undefined |
The app's trailingSlash policy, applied to canonical and alternate URLs on the app's origin. |