Gets the site revision ID.
The site revision ID is a unique identifier for the current revision of your site. Each time you manually save your site or publish your site following a change, a new revision is created.
You can view and manage your site revisions in your Site History. You can use site monitoring to monitor and debug new revisions of your site.
Since publishing your site may change the revision ID, the ID when previewing your site may be different than the ID for the published site.
The site revision ID is guaranteed to be unique, but not meaningful. Therefore, you cannot predict future revision IDs before they are created.
Was this helpful?
Get the site revision ID
1import wixSite from 'wix-site';23// ...45const revision = wixSite.revision; // "4x2y"