serverless-components / website

:zap: Instantly deploy static website on serverless infrastructure with zero configuration using Serverless Components.
https://serverless.com
Apache License 2.0
155 stars 49 forks source link

When deploying command adds cloudfront cname #65

Open Ewan-Roberts opened 3 years ago

Ewan-Roberts commented 3 years ago

Result from : sls deploy

Updating CloudFront distribution of ID XXXXXXXX.
Adding "xxxxx.com" certificate to CloudFront distribution
Adding domain "www.xxxxx.com" to CloudFront distribution
Adding domain "xxxxx.com" to CloudFront distribution

I dont own the CNAME for www.xxxxx.com so it throws a InvalidViewerCertificate

serverless.yml

component: website
name: landing-page4
stage: dev

inputs:
  domain: 'http://www.xxxxx.com'
  src:
    src: ./src
    hook: npm run build
    dist: ./dist

Why is it adding the www domain? I cant deploy to live as it stands as its forcing this options. Appreciate some help