Debug flags
In this documentation you will find all debug flags Front-Commerce provides.
How to use
Debug flags enable specific logs in Front-Commerce, helping developers to debug
issues or understanding application behavior. To enable a debug flag, set the
DEBUG
environment variable in your project's root .env
file. The DEBUG
variable should be a comma-separated list of debug flags you wish to enable.
Wildcards can be used to enable multiple flags at once.
Example:
# .env
DEBUG="front-commerce:graphql,front-commerce:adobe-b2b*
You can also use debug flags in CLI.
Example:
# bash
$ DEBUG="front-commerce:axios" pnpm dev
Convention
Debug flags follow this naming convention:
front-commerce:<package>:<scope>:<componentName>
For cross-package features:
front-commerce:<featureName>