aws-amplify / aws-amplify/amplify-cli

Add env name to the "aws-exports.js"

Open
#4,364 5 comments 7 reactions 0 assignees View on GitHub
feature-request p3 platform
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

**Is your feature request related to a problem? Please describe.**
I need to access the enviornment name of my backend in the frontend to display different features.

**Describe the solution you'd like**
Add the value "env" in the aws-exports.js which is generated by the Amplify CLI
(And when possible also to the build spec as a native Env to use it in this deployment as well)

**Describe alternatives you've considered**
Query the backend stack of amplify or replace a config file during the build process

Thx!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.