You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spust already supports .env and .env.local files. Each of the files is optional. They has to be in a root directory of a project.
If user wants to use them they work as following:
file .env is loaded and parsed to variable (it is not assigned to process.env.* so it is not available in a configuration for example, see the last point)
file .env.local is loaded and parsed to a variable, override previous values for intersected keys from .env file.
all variables are available in your build as process.env.{name of variable} but they aren't available outside of the build. For example, you can't access them in spust.config.js. They are just interpolated using webpack.DefinePlugin()
The text was updated successfully, but these errors were encountered:
Spust already supports
.env
and.env.local
files. Each of the files is optional. They has to be in a root directory of a project.If user wants to use them they work as following:
.env
is loaded and parsed to variable (it is not assigned toprocess.env.*
so it is not available in a configuration for example, see the last point).env.local
is loaded and parsed to a variable, override previous values for intersected keys from.env
file.process.env.{name of variable}
but they aren't available outside of the build. For example, you can't access them inspust.config.js
. They are just interpolated usingwebpack.DefinePlugin()
The text was updated successfully, but these errors were encountered: