Are you using the WordPress Static Site plugin? https://wordpress.org/plugins/simply-static/
And if so, are you just putting the result on S3? or perhaps deploying with Netlify?
And if so, are you just putting the result on S3? or perhaps deploying with Netlify?