Skip to content

Differentiate preview vs production builds

We have a project that requires running with mock data in previews only. We must ensure that no mock data is included in the production environment. To achieve this, we need to determine whether we are running in a preview or not.

I think an environment variable would help differentiate between the two. Do we currently have one?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information