Originally Posted by
tentseller
US CBP pre-clearance for Canadian departures is done at the last Canadian airport before the flight lands in US.
Unless of course said airport doesn't have pre clearance. Athough connections at such an airport from another Canadian airport are relatively rare.