Std.Site
19 public declarations
- build
&Std.Site.Options -> &Array[Str] -> fn(Str) -> Std.Http.Response -> Result[Std.Site.Report, Std.Site.SiteError]Build a site: every path rendered by
renderand written where the - defaultOutput
Std.Site.Target -> StrWhere a host expects a build to be written.
- explain
&Std.Site.SiteError -> StrA sentence saying what stopped the build.
- fileFor
Str -> Str -> Result[Str, Str]The file a path is written to, relative to the pages directory, given
- headersFile
&Array[Std.Site.Route] -> StrThe
_headersfile static hosts read: each pattern, then its headers - options
Std.Site.OptionsOptions that suit most sites: the host detected from the environment,
- Options
Std.Http.MethodHow a site is built.
- pagesDirectory
&Std.Site.Options -> StrThe directory pages and public files are written into for these options:
- patternRegex
Str -> StrA route pattern as the anchored regular expression a Build Output
- redirectsFile
&Array[Std.Site.Route] -> StrThe
_redirectsfile static hosts read: onefrom to statusline per - Refusal
A path that was not written, and why.
- Report
What a build did: pages rendered, files written because they changed,
- Route
A rule the host applies before it looks for a page, written in one pattern
- SiteError
Why a build could not run at all.
- succeeded
&Std.Site.Report -> BoolWhether every path was written or already current.
- summary
&Std.Site.Report -> StrOne line saying what a build did, for a build log.
- Target
The host a site is built for. Each lays out and routes files its own way;
- targetFromEnvironment
Std.Site.TargetThe host the build is running on, read from the variables each host's
- vercelConfig
Option[Str] -> Bool -> &Array[Std.Site.Route] -> StrThe routing a host that reads a Build Output configuration needs: the
