pageRewritesOf
The forced rewrites that send the pages the app's rules apply to (mode: "handler") to the function.
The forced rewrites that send the pages the app's rules apply to (mode: "handler") to the function. A page is
reachable as /admin and as its own files (/admin/index.html, /admin.html; the root has /index.html): all of
them go to the function, or the file would be served without the app's middleware.
Import#
ts
import { pageRewritesOf } from "@shadow-js/dusk/netlify";
Signature#
ts
function pageRewritesOf(pages: readonly StaticPage[], functionPath: string): string[]