Support Forums

Problem with NextJS + aws sdk

Hello all,

I face an issue that can’t find answer for. Im using aws sdk in my Next app to fetch data from S3 bucket, but there are credential errors. I set env vars but don’t work. Please refer to:
Repo: https://github.com/Enzaik/next-aws
Page: https://lucid-hermann-03ec55.netlify.app/

hey enzaik, can you tell us a little more about what errors you are seeing and what you mean by your environment variables “not working”?

Also, here is a general guide on environment variables that might be helpful