aboutsummaryrefslogtreecommitdiffhomepage
path: root/deploy/deployConfig.go
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/deployConfig.go')
-rw-r--r--deploy/deployConfig.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/deploy/deployConfig.go b/deploy/deployConfig.go
index 3f5465171..5bbec5ab4 100644
--- a/deploy/deployConfig.go
+++ b/deploy/deployConfig.go
@@ -127,11 +127,16 @@ func (m *Matcher) Matches(path string) bool {
return m.re.MatchString(path)
}
+var DefaultConfig = DeployConfig{
+ Workers: 10,
+ InvalidateCDN: true,
+ MaxDeletes: 256,
+}
+
// DecodeConfig creates a config from a given Hugo configuration.
func DecodeConfig(cfg config.Provider) (DeployConfig, error) {
- var (
- dcfg DeployConfig
- )
+
+ dcfg := DefaultConfig
if !cfg.IsSet(deploymentConfigKey) {
return dcfg, nil