Next.js & Stripe Elements – Invalid API Key provided
I have a next.js app with Stripe Elements running on AWS Amplify. Everything works great locally but on live i get an error An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.
which in the logs relates to “Invalid API Key provided”