Save the date! Join us on October 16 for our Product Ops launch event. Register here.
Aug 27, 2020 09:07 PM
Basically I want to know if the current env is an installed custom block or a local development environment?
Sep 08, 2020 11:44 AM
Hey @Ashwin_P
You can use process.env.NODE_ENV to check the environment. The value will be set to development during local development (block run), and production for released blocks.
process.env.NODE_ENV
development
block run
production
Sep 08, 2020 12:40 PM
That’s great, Thank you.