Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Is there a "env" variable to know if the block is running in PROD or DEV mode?

Topic Labels: Custom extensions
928 2
Showing results for 
Search instead for 
Did you mean: 

Basically I want to know if the current env is an installed custom block or a local development environment?

2 Replies 2

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.