This is really up to the AHJ and the local policy. The NEC doesn't specify a distance.
Common sense says it should be as short as possible and some AHJs set that at zero, requiring an outside disconnect.
The load side of the first disconnect is simply a feeder and follows regular wiring rules.


Greg Fretwell