1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! Org-canonical shared variable groups — one place that fixes the names, so
//! `POSTHOG_KEY` vs `POSTHOG_API_KEY` vs `NEXT_PUBLIC_POSTHOG_KEY` drift stops
//! at the source. Mirrors `presets` in `@evinvest/settings` (which additionally
//! ships the `NEXT_PUBLIC_*` client variants — a browser-bundler concern with
//! no Rust equivalent).
//!
//! Each preset is a plain [`settings!`](crate::settings!) struct: load it on
//! its own, next to your app settings.
//!
//! ```
//! use ev_lib::settings::presets::{AppEnv, Posthog};
//!
//! let posthog = Posthog::from_source(|_| None).unwrap(); // both vars optional
//! assert_eq!(posthog.key, None);
//! let app_env = AppEnv::from_source(|_| None).unwrap();
//! assert_eq!(app_env.app_env, "development"); // defaulted
//! ```
cratesettings!
cratesettings!
cratesettings!