PagesMap
astro-pdf@1.7.2Signature
export type PagesMap = Record<string, PagesEntry | PagesEntry[]> & {
fallback?: PagesFunction
}
Specifies the locations of pages to use for generating PDF files.
Description
The locations can be absolute pathnames to use pages within your Astro site, or full URLs for using other websites.
Optionally provide a fallback PagesFunction
which will be called with the pagenames of pages generated by Astro which are not already in the map.
If the pathname is in the map, but the maps to null
, undefined
, or an empty array, it will treated as if it is not in the map, meaning the pathname will still be passed to fallback. If the pathname maps to false
, then the page is skipped.