-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
503 ERROR - The Lambda function associated with the CloudFront distribution is invalid. Environment variable support for Labda@Edge #2084
Comments
Hi 👋, thanks for opening! While we look into this... If this issue is related to custom domains, be sure to check the custom domains troubleshooting guide to see if that helps. Also, there is a more general troubleshooting FAQ that may be helpful for other questions. Lastly, please make sure you've specified the |
Environment variables have been added. Check to make sure you are adding them as described here: |
I did update my next.config.js file and the amplify terminal fails at build and gives me this error -
|
I don't think that has anything to do with Environment Variables not working... |
I navigated the discussions and still unsure about the solution is! package.JSON
|
It seems like you are in the same boat as us. This is related with #2098. |
yo guys, I think I found a solution. For me, the approach with
|
This issue is a duplicate of #2098 and it seems isolated to Next v11. We have since launched improved support for Next.js versions 12 and 13 so this should no longer be an issue. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
This issue has been automatically locked. |
Provide additional details
I connected a SSR Next.js app repo, where amplify detected SSR pages and created SSR resources ( CloudFront, Default Edge Lambda, S3 bucket, API Edge Lambda, Image Optimization Edge Lambda ). The error I'm receiving s because Lambda@Edge doesn't support environment variables.
What AWS Services are you utilizing?
Amplify Console
Provide additional details e.g. code snippets
SSR Resources
CloudWatch Log
The text was updated successfully, but these errors were encountered: