@shadow-js/dusk/static
The 12 exports of @shadow-js/dusk/static: 4 functions, 1 class, 6 interfaces and 1 const.
Everything @shadow-js/dusk/static exports, from the TSDoc of its entry point.
Functions#
internalLinks: The app paths the links of a page lead to, sorted and unique.outputFileFor: Maps a URL path to the file it is written to, relative to the output directory.prerender: Renders pages to static files with the production handler.staticSite: The static-site adapter.
Classes#
PrerenderError: Thrown for a path that cannot be rendered to a file, or a page that did not render.
Interfaces#
CrawlPolicy: Crawl bounds: how many link hops from the listed paths, and how many pages the crawl may add.PrerenderedPage: One file written.PrerenderFailure: A page that did not render, with the reason (anError, usually aPrerenderError).PrerenderOptions: Options of prerender.PrerenderResult: Result of prerender.StaticSiteAdapterOptions: Options of the staticSite adapter.
Constants#
DEFAULT_CRAWL: WhatcrawlLinks: truemeans.