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
That constant, is that a number? If yes, change it to the type "Document". It will then reference the UUID and become stable across deployments.