[pedro] Creating hook to change server url according to TARGET variable.