updating build to read from an origin variable instead of hard coding url