Work with role-based layouts
When reviewing your storefront in Preview, you can use role-based layouts that render exclusively for selected roles.
The layout only renders in Preview if the user is authenticated and matches one of the designated roles.
Important: This feature works only in Preview mode. It cannot be used on a production storefront application.
Layouts of this type can be used in conjunction with any Commerce roles. For example, you can use this feature to preview a page exclusively for developers with the Design role, allowing them to test changes before they are made on the production storefront application.
To create a role-based layout: