Skip to content

ui-router-server / prerender / RedirectPagesOptions

Interface: RedirectPagesOptions ​

Defined in: redirect-pages.ts:11

Options for redirectPages.

Properties ​

PropertyTypeDescriptionDefined in
base?stringThe url path outDir is served at, prerender's base by default. Each line's from must lie under it; the page lands at the rest of the path.redirect-pages.ts:17
page?(line) => string | Promise<string>Builds each page's HTML from its line, redirectPage by default. Wrap that to add to the page, or replace it. to arrives unescaped: HTML-escape it in markup, with escape-html (a dependency of this package) or your template's own escaper, and escape it as a script string too if it goes in a script.redirect-pages.ts:31
redirectsFile?booleanAlso writes the _redirects file, for a site deployed both to a host that reads it and to one that doesn't. The host that reads it answers with the line's status before the page is reached.redirect-pages.ts:23