NetlifyRedirect
A redirect of the _redirects file.
A redirect of the _redirects file.
Import#
ts
import type { NetlifyRedirect } from "@shadow-js/dusk/netlify";
Signature#
ts
interface NetlifyRedirect {
/** Path the request names: `/old` or `/blog/*`. */
readonly from: string;
/** Where to go: a path (`/new`) or an absolute URL. */
readonly to: string;
/** HTTP status. Default 301. */
readonly status?: 301 | 302 | 303 | 307 | 308;
}
Members#
| Name | Type | Description |
|---|---|---|
from |
readonly from: string |
Path the request names: /old or /blog/*. |
to |
readonly to: string |
Where to go: a path (/new) or an absolute URL. |
status? |
readonly status?: 301 | 302 | 303 | 307 | 308 |
HTTP status. Default 301. |