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
Proposal:
Introduce import.meta.envName to reflect the custom envName defined during the build process. By default, it would to return production, development, or test, but when a custom envName is provided, it would return the defined value (e.g., staging).
Describe the feature
Describe the feature
The current implementation of
envName
in Nuxt allows for custom environment names (e.g.,staging
) to be defined at build time, as per the documentation https://nuxt.com/docs/api/commands/build#options & https://nuxt.com/docs/getting-started/configuration#environment-overrides. However, there is no straightforward way to access this customenvName
at runtime.Proposal:
Introduce
import.meta.envName
to reflect the customenvName
defined during the build process. By default, it would to returnproduction
,development
, ortest
, but when a customenvName
is provided, it would return the defined value (e.g.,staging
).Use Cases:
Styling and Customization:
Third-Party Module Configuration:
Additional information
The text was updated successfully, but these errors were encountered: