automagic serve dir config if debug