Search.../

revision

Gets the site revision ID.

Description

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.

Notes:

  • 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.

Type:

stringRead Only

Was this helpful?

Get the site revision ID

Copy Code
1import wixSiteFrontend from 'wix-site-frontend';
2
3// ...
4
5const revision = wixSiteFrontend.revision; // "4x2y"