Hugo doesn't execute any server-side code at run-time though does it? I believe the content in that data directory is made available to the templates at compile time, but the actual deployed asset is still just static files.
Re:The Baked Data architectural pattern
by JensRantil on Monday August 09, 2021 @12:08PM
(#28118607)
Correct, but there's nothing stopping your from having a lambda function regenerating S3 content from Hugo periodically/by request.
[1] https://gohugo.io/templates/data-templates/#readout