-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Labels
archivedThis issue has been locked.This issue has been locked.ssrServer Side Rendering featureServer Side Rendering feature
Description
Before opening, please confirm:
- I have checked to see if my question is addressed in the FAQ.
- I have searched for duplicate or closed issues.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
App Id
d36aqre3ndgr2h
Region
us-east-1
Amplify Console feature
Environment variables
Describe the bug
When I set environment variables in the Amplify app, they are NOT being carried through to the Lambda functions that are automatically created for my Next.js SSR website.
Even if I set the environment variables later on the Lambda functions that are created, they get wiped out the next time I do a build.
Here's a link to my repo: https://github.com/agility/agilitycms-nextjs-ssr-starter
Expected behavior
I expected the environment variables to propagate from the Amplify settings to the Lambda functions that are created.
Reproduction steps
- Create a new Next.js site on Amplify site using this repo: https://github.com/agility/agilitycms-nextjs-ssr-starter
- Set the environment variables as needed (let me know if you need this information specifically)
- Push a change to the main branch
- The Environment variables are NOT on the Lambda functions.
- The code in the Lambda functions that uses process.env.VARIABLE_NAME doesn't work
Build Settings
No response
Additional information
No response
joekendal, RealDrewKlayman, siegerts, ywroh, shanemcgraw and 16 morejoekendal, ywroh, sakhmedbayev, roveroniandrea, sohammondal and 3 more
Metadata
Metadata
Assignees
Labels
archivedThis issue has been locked.This issue has been locked.ssrServer Side Rendering featureServer Side Rendering feature