Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
chore(local): disable voip sns locally (#3216)
teo3f48e83cc57a
diff --git a/rust/cloud-storage/notification_service/src/config.rs b/rust/cloud-storage/notification_service/src/config.rsindex e695e28d8f..69a0fc9969 100644--- a/rust/cloud-storage/notification_service/src/config.rs+++ b/rust/cloud-storage/notification_service/src/config.rs@@ -94,8 +94,15 @@ impl Config {let sns_fcm_platform_arn = std::env::var("SNS_FCM_PLATFORM_ARN").context("SNS_FCM_PLATFORM_ARN must be provided")?;- let sns_apns_voip_platform_arn = std::env::var("SNS_APNS_VOIP_PLATFORM_ARN")- .context("SNS_APNS_VOIP_PLATFORM_ARN must be provided")?;+ let sns_apns_voip_platform_arn = match std::env::var("SNS_APNS_VOIP_PLATFORM_ARN") {+ Ok(value) => value,+ // Local `run_local` does not provision SNS platform applications. Keep+ // VoIP push disabled locally instead of requiring a dummy ARN in .env.+ Err(std::env::VarError::NotPresent) if matches!(environment, Environment::Local) => {+ String::new()+ }+ Err(error) => return Err(error).context("SNS_APNS_VOIP_PLATFORM_ARN must be provided"),+ };let sender_base_address =std::env::var("SENDER_BASE_ADDRESS").context("SENDER_BASE_ADDRESS must be provided")?;