Amazon web services 如何将CloudFront日志添加到无服务器的nextjs部署站点?

Amazon web services 如何将CloudFront日志添加到无服务器的nextjs部署站点?,amazon-web-services,next.js,amazon-cloudfront,serverless,Amazon Web Services,Next.js,Amazon Cloudfront,Serverless,我使用将NextJS网站部署到AWS 查看AWS CloudFront,我注意到没有配置日志记录。在CloudFront分发设置中,您可以启用“标准日志记录”,提供“S3日志存储桶”和“日志前缀” 经过一些挖掘,我不知道如何在serverless.yml文件中配置它。是否有人有配置或指针可以提供帮助 我的配置文件非常简单 文件名:serverless.yml myNextApplication: component: '@sls-next/serverless-component@1.18.

我使用将NextJS网站部署到AWS

查看AWS CloudFront,我注意到没有配置日志记录。在CloudFront分发设置中,您可以启用“标准日志记录”,提供“S3日志存储桶”和“日志前缀”

经过一些挖掘,我不知道如何在
serverless.yml
文件中配置它。是否有人有配置或指针可以提供帮助

我的配置文件非常简单

文件名:
serverless.yml

myNextApplication:
  component: '@sls-next/serverless-component@1.18.0'
  inputs:
    cloudfront:
      comment: 'Lovely comment about this service'
    domain: ['www', 'service-name.com']

谢谢

这个问题已经提出了几天,但我仍然希望有人知道如何通过无服务器组件添加CloudFront日志。