Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetlifyOptions ¶
NetlifyOptions contains the credential and transport used by NetlifyPages. The token is never read from project configuration.
type Result ¶
type Result struct {
Provider string `json:"provider"`
Target string `json:"target"`
Environment string `json:"environment"`
Deployment string `json:"deploymentId"`
URL string `json:"url"`
Uploaded int `json:"uploaded"`
Reused int `json:"reused"`
}
func CloudflarePages ¶
func NetlifyPages ¶
func NetlifyPages(ctx context.Context, outputDir, targetName, environment string, target config.DeployTarget, options NetlifyOptions) (Result, error)
NetlifyPages publishes the already-built static output as an atomic Netlify deploy. Preview deploys are draft deploys and do not replace production.
Click to show internal directories.
Click to hide internal directories.