Retrieve an environment variable with a fallback value.
Environment variable name
Default value if variable is not set
If the requested variable does not exist, the provided fallback value will be returned instead.
const port = getEnvOr("PORT", "3000"); Copy
const port = getEnvOr("PORT", "3000");
Retrieve an environment variable with a fallback value.