Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
"type": "string"
}
},
"enable_email": {
"description": "Associate an email account with the app",
"type": [
"boolean",
"null"
]
},
"env": {
"description": "Environment variables.",
"type": "object",
Expand Down
3 changes: 2 additions & 1 deletion lib/cli/src/commands/app/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ impl CmdAppCreate {
scaling: None,
locality: None,
redirect: None,
extra: IndexMap::new(),
jobs: None,
enable_email: None,
extra: IndexMap::new(),
}
}

Expand Down
5 changes: 5 additions & 0 deletions lib/config/src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ pub struct AppConfigV1 {
#[serde(skip_serializing_if = "Option::is_none")]
pub jobs: Option<Vec<Job>>,

/// Associate an email account with the app
#[serde(default, skip_serializing_if = "Option::is_none")]
pub enable_email: Option<bool>,

/// Capture extra fields for forwards compatibility.
#[serde(flatten)]
pub extra: IndexMap<String, serde_json::Value>,
Expand Down Expand Up @@ -393,6 +397,7 @@ scheduled_tasks:
regions: vec!["eu-rome".to_string()]
}),
jobs: None,
enable_email: None,
}
);
}
Expand Down
Loading