feat: complete Epic 1 production foundation
This commit is contained in:
1 parent
767428436d
commit
182bde8ac0
298 files changed
+35711
-5291
No files matched your search
@@ -63,6 +63,8 @@ pub fn reference_section() -> String {
|
||||
};
|
||||
let bounds = match (field.minimum, field.maximum) {
|
||||
(Some(minimum), Some(maximum)) => format!("{minimum}..={maximum}"),
|
||||
(Some(minimum), None) => format!(">={minimum}"),
|
||||
(None, Some(maximum)) => format!("<={maximum}"),
|
||||
_ => "-".to_owned(),
|
||||
};
|
||||
output.push_str(&format!(
|
||||
@@ -102,9 +104,10 @@ fn example_value(field: &FieldSpec, production: bool) -> String {
|
||||
}
|
||||
match (field.env_name, production) {
|
||||
("CRANK_ENVIRONMENT", true) => "production".to_owned(),
|
||||
("CRANK_BASE_URL", _) => "http://localhost:3000".to_owned(),
|
||||
("CRANK_BASE_URL", true) => "https://crank.example.local".to_owned(),
|
||||
("CRANK_BASE_URL", false) => "http://localhost:3000".to_owned(),
|
||||
("POSTGRES_HOST", true) => "postgres".to_owned(),
|
||||
("CRANK_TRUST_FORWARDED_HEADERS", true) => "true".to_owned(),
|
||||
("CRANK_TRUSTED_PROXY_IPS", true) => "127.0.0.1".to_owned(),
|
||||
_ => field.default.unwrap_or("").to_owned(),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user