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.
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 wixSiteFrontend from 'wix-site-frontend';23// ...45const revision = wixSiteFrontend.revision; // "4x2y"