.env
files:.env
.env.development.local
.env.production
.env
.env
file will look after you run experro-cli init
and provide the necessary options:
How to Obtain Channel IDs?
To get Channel IDs, you can refer to the documentation Get Channel Information.
.env.development.local
.env.development.local
file contains environment variables that the Experro base theme uses to determine which modules to load or exclude during local theme development.
Currently, the .env.development.local
file must include the following predefined variables:
The additional variables below will be supported only when you are using a BigCommerce store with Experro Admin:
REACT_APP_BUILD_TARGET
TheREACT_APP_BUILD_TARGET
variable accepts two values: the default valueapp
, andapp-ui-builder
. Setting it toapp-ui-builder
will launch the Visual Builder locally, allowing theme developers to customize component widgets accordingly.
.env.production
.env.production
file functions similarly to the .env.development.local
file. While .env.development.local
is used during local development, the .env.production
file is utilized when creating or uploading a build using experro-cli. During local development, variables from .env.development.local
are applied, but when you create a build or upload it, .env.production
is used to determine the build configuration.