add publicDir to carteroJson