Update build event to replace correct local API with remote API