#s3 plugin with next JS not working on production, works locally

3 messages · Page 1 of 1 (latest)

dark portal
#

Been scouring the forum here looking for an answer all week. Still having no luck. Was able to identify a similar issue called out here (https://discord.com/channels/967097582721572934/1183964053887000606). Any ideas? Has anyone successfully launched nextjs app on EC2 using this clous plugin with s3?

Discord

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

placid scarabBOT
dark portal
#

SOLUTION: Even though I added S3_REGION in .env it was still not recognized for some reason. I had to actually run aws configure on my ec2 instance and setup the region in there. So this makes sense why it worked locally since my machine is configured this way, but I don't understand why the region wasn't handled properly from the .env.