I was setting the Scratch value after I was using it in my header.html l instead of before. I simply moved {{ .Scratch.Set…}} above partials that use it, see below pic, and that fixed it.
PS: It is still weird that it worked on my localhost…maybe it was a race condition?