Allow local deploy
(cherry picked from commit 79840db909d85c2bb2ac6bde4e5332634f328a62)