I have a Next.js app with SSR which relies on environment variables. When I deploy the app to AWS Amplify, 2 Lambda functions are created.
I have my environment variables setup in Amplify, however, those variables are NOT set in the Lambda functions that are created during the build. If I set the environment variables manually on the functions, they are removed during the next build.
Any ideas on how this is supposed to work?