Error serverless-domain-manager Plugin configuration is missing. code example

Example 1: Error: serverless-domain-manager: Plugin configuration is missing.

# From npm (recommended)
npm install serverless-domain-manager --save-dev

Example 2: Error: serverless-domain-manager: Plugin configuration is missing.

custom:  customDomain:    domainName: serverless.foo.com    stage: ci    basePath: api    certificateName: '*.foo.com'    createRoute53Record: true    endpointType: 'regional'    securityPolicy: tls_1_2

Example 3: Error: serverless-domain-manager: Plugin configuration is missing.

plugins:  - serverless-domain-manager