Welcome to Part 5 — Scaling, Config & CI. In Chapter 17 we built a typed env

module. Now we wire it into playwright.config.ts so the entire run adapts to its

target: the same suite, pointed at local, CI, or staging, with the right URLs and the

right resilience for each.

Code for this chapter is tagged ch-18 in the repo: