Misha Kaletsky
04/26/2022, 12:53 AMNextjsSite
construct with next-auth and hitting some issues I think because Lambda@Edge doesn't support environment variables: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html - so is there a recommendation for using next-auth, which assumes there are NEXTAUTH_URL and NEXTAUTH_SECRET env vars? Can the Lambda@Edge version of the backend be used for only some API requests?Derek Kershner
04/26/2022, 2:00 PMMisha Kaletsky
05/08/2022, 6:14 PMgetSecretValue
as a workaround which is ok for now but adds a bit of latency to each request. I'll check that it's not something in next.js, but I don't think so because it works fine locally, and the AWS docs explicitly say that env vars aren't supported.