Check if the current invocation is running in a development environment.
This is determined by the POWERTOOLS_DEV environment variable.
POWERTOOLS_DEV
import { isDevMode } from '@aws-lambda-powertools/commons/utils/env';const isDev = isDevMode(); Copy
import { isDevMode } from '@aws-lambda-powertools/commons/utils/env';const isDev = isDevMode();
Check if the current invocation is running in a development environment.
This is determined by the
POWERTOOLS_DEV
environment variable.