0805
ng an
You can put the via right on the edge of the pad, but make sure the hole is beyond the pad. Tent all the vias, which means they are dropped out of the solder mask artwork. Then there are no soldering issues and no long trace issues. If your layout package doesn't support tenting vias, it can be done manually by deleting that d code and flashes from the gerber file for the solder mask. Then check it with software like Viewmate before ordering the board.