Documentation
¶
Overview ¶
Package deploy writes host-specific adapter files (redirects, config) into a built site so it can be dropped onto a static host without manual setup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Targets = []string{"netlify", "vercel", "cloudflare", "gh-pages", "docker"}
Targets lists the supported deploy adapters.
Functions ¶
func Emit ¶
func Emit(target string, cfg *config.Config, root, outDir string, opts ...Options) ([]string, error)
Emit writes the adapter files for target and returns their paths. root is the project directory (vercel.json and the Docker files live there); outDir is the build output.
func ServerFeatures ¶
ServerFeatures lists the server-side features a built project uses. A static host serves none of them, so deploying such a project to a static target would publish pages whose dynamic parts silently do nothing.
Types ¶
Click to show internal directories.
Click to hide internal directories.