Skip to content

Commit d46c3bb

Browse files
authored
Merge pull request #127 from netlify/move-plugins-config
Don't nest plugins config under build in netlify.toml parser
2 parents cd9d4fb + 93ddc58 commit d46c3bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ntoml/netlify_toml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type NetlifyToml struct {
2828

2929
// this is the default context
3030
Build *BuildConfig `toml:"build" json:"build" yaml:"build"`
31+
Plugins []Plugin `toml:"plugins" json:"plugins" yaml:"plugins"`
3132
Context map[string]DeployContext `toml:"context,omitempty" json:"context,omitempty" yaml:"context,omitempty"`
3233
}
3334

@@ -42,7 +43,6 @@ type BuildConfig struct {
4243
Publish string `toml:"publish" json:"publish" yaml:"publish"`
4344
Ignore string `toml:"ignore" json:"ignore" yaml:"ignore"`
4445
Environment map[string]string `toml:"environment" json:"environment" yaml:"environment"`
45-
Plugins []Plugin `toml:"plugins" json:"plugins" yaml:"plugins"`
4646
}
4747

4848
type Plugin struct {

0 commit comments

Comments
 (0)