Feature/cdodge/add preview configs via middleware