chore(release): initialize separated production env
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 14s
Deploy / Deploy Staging (push) Successful in 2m18s
Deploy / Deploy Production (push) Has been skipped

This commit is contained in:
Xiaoxia AI
2026-06-21 14:24:23 +08:00
parent 1f89f8edfe
commit f22af7ee4c
7 changed files with 146 additions and 5 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ def validate(values: dict[str, str], strict_external: bool) -> list[str]:
errors.append("DEBUG must be false in production")
external_requirements = []
if strict_external or is_enabled(values.get("ENABLE_EMAIL_DELIVERY")):
if is_enabled(values.get("ENABLE_EMAIL_DELIVERY")):
external_requirements.extend(REQUIRED_SMTP)
if strict_external:
external_requirements.extend(REQUIRED_OSS)
@@ -117,7 +117,7 @@ def main() -> int:
parser.add_argument(
"--strict-external",
action="store_true",
help="Require SMTP, Redis sessions, and OSS credentials for production readiness.",
help="Require Redis sessions and OSS credentials for production readiness. SMTP is required only when ENABLE_EMAIL_DELIVERY=true.",
)
args = parser.parse_args()