0

I deployed a NextJS website to AWS using Serverless-nextjs.

Looking at AWS CloudFront, I notice that logging is not configured. Inside CloudFront Distribution Settings, you can enable "Standard Logging", provide the "S3 Bucket for Logs", and a "Log Prefix".

After some digging, I don’t see how to configure this within the

serverless.yml
file. Does anyone have config or pointers that will help?

My config file is pretty bare bones.

Filename:

serverless.yml

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

Thanks!

Anonymous Asked question May 14, 2021