Hi all,
I followed the guide but i can’t link my custom domain to my api.
Here is the error message I get when launching the deployment to production :
[Error at /prod-awslambda-ApiStack/Api] Found zones: for dns:com, privateZone:undefined, vpcId:undefined, but wanted exactly 1 zone
my ApiStack.js
const api = new Api(stack, “Api”, {
customDomain:
app.stage === “prod” ? “nodejs-e-live.com” : undefined,
defaults: { … },
});
Whats wrong ?
Thank a lot for your help