I have the aws-sdk working in gatsby using a .env file to put a file to an S3 bucket and I am now migrating this to Nextjs however I am now getting the following error in Nextjs