MikeBild / sveltekit-adapter-aws

A SvelteKit adapter for AWS using the AWS-CDK
MIT License
135 stars 33 forks source link

(fix): deploying app to root domain #18

Closed brsc2909 closed 1 year ago

brsc2909 commented 1 year ago

there's a bug when deploying an application to the root domain e.g example.com instead of www.example.com

/Users/scullion/Development/ConnectMor/revision-ninja/node_modules/sveltekit-adapter-aws/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:2
  `);throw new Error(`Validation failed with the following errors:
     ^

Error: Validation failed with the following errors:
  [revision-ninja-sveltekit-stack/DnsValidatedCertificate] DNS zone ninja.undefined is not authoritative for certificate domain name revision.ninja
    at validateTree (/Users/scullion/Development/ConnectMor/revision-ninja/node_modules/sveltekit-adapter-aws/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:2:12)
    at Object.synthesize (/Users/scullion/Development/ConnectMor/revision-ninja/node_modules/sveltekit-adapter-aws/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:1:647)
    at App.synth (/Users/scullion/Development/ConnectMor/revision-ninja/node_modules/sveltekit-adapter-aws/node_modules/aws-cdk-lib/core/lib/stage.js:1:1883)
    at process.<anonymous> (/Users/scullion/Development/ConnectMor/revision-ninja/node_modules/sveltekit-adapter-aws/node_modules/aws-cdk-lib/core/lib/app.js:1:1157)
    at Object.onceWrapper (node:events:628:26)
    at process.emit (node:events:513:28)

Node.js v18.8.0
MikeBild commented 1 year ago

👌 Thank you.