Set hooks, defaults, and behaviour once and have them apply to every send. Drop a postboi.settings.ts at your project root (bunx postboi init offers to scaffold one).
It’s the only place hooks can live, since they’re functions.
It auto-loads on the first send().
Precedence
Lowest to highest — later sources win:
postboi.settings.tsPOSTBOI_*environment variables- options passed explicitly to
send()
Edge runtimes
Edge runtimes (Cloudflare Workers, etc.) have no filesystem, so the settings file can’t be
auto-loaded. Register settings at startup instead with configure({ ... }).