Environment Variable Not Injected Into Application Function #2190
Labels
hosting
Issue related to Amplify Hosting
pending-response
Issue is pending response from author
question
Question or confusion about some aspect of the product
Environment information
Describe the bug
AWS Amplify by default do not inject environment variables into serverless function, even though environment variable have been explicitly specified, in contrast compared to vercel. This leads to application error and challenging to debug. Environment variable has to also be explicitly specified in amplify.yml build file to bypass this bug.
Reproduction steps
Step1: process.env.ENV is called in code.
Step2: Specify environment variable in amplify.
Step3: Application failed and log shows no environment specified.
The text was updated successfully, but these errors were encountered: