When we deploy a document from a lower environment to a higher environment, its ID is getting changed. Due to this, constant points to invalid/wrong a document.
We are using direct deployment (Compare & Deploy)
Is it expected behavior?
Discussion posts and replies are publicly visible
It should work when you have the document object in document type constant.