Specifies which environment the application is loading within.
String
Any string value is possible.
Use
Previously setting env was used to control when bundles were loaded, by setting env to production. This functionality has been superceded by loadBundles.
env can be any string value and separated by a dash -. This is useful to, for example, set the environment as being both production and server if doing server-side rendering.
Use
Previously setting
env
was used to control when bundles were loaded, by settingenv
to production. This functionality has been superceded by loadBundles.env
can be any string value and separated by a dash-
. This is useful to, for example, set the environment as being both production and server if doing server-side rendering.Rarely do you need to set
env
any more, more likely you want to use loadBundles. env is set by plugins in most cases.Common values
A few of the common env values include: