Basically I want to know if the current env is an installed custom block or a local development environment?
Page 1 / 1
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.
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.
That’s great, Thank you.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.