Rohith Gilla
05/04/2022, 1:53 PMIt seems you are configuring custom domains for you URL. And SST is not able to find the hosted zone "<http://app-serverless-cli.text-shot.com|app-serverless-cli.text-shot.com>" in your AWS Route 53 account. Please double check and make sure the zone exists, or pass in a different zone.
I tried deleting npx sst remove — stage {my stage name}
but still same issues.thdxr
05/04/2022, 1:54 PMRohith Gilla
05/04/2022, 1:55 PMconst api = new sst.Api(this, "Api", {
defaultFunctionProps: {
environment: {
TWITTER_BEARER_TOKEN: process.env.TWITTER_BEARER_TOKEN ?? "",
},
},
routes: {
"GET /": {
function: {
handler: "src/lambda.handler",
//timeout in seconds
timeout: 15,
//Loading additional layers,
layers: [layer],
// Exclude bundling it in the Lambda function
bundle: { externalModules: ["chrome-aws-lambda"] },
},
},
},
customDomain: `api-${scope.stage}.<http://text-shot.com|text-shot.com>`,
});
const frontend = new sst.NextjsSite(this, "Frontend", {
path: "frontend",
environment: {
TWITTER_BEARER_TOKEN: process.env.TWITTER_BEARER_TOKEN ?? "",
API_ENDPOINT: api.url,
},
customDomain:
scope.stage === "prod"
? "<http://text-shot.com|text-shot.com>"
: `app-${scope.stage}.<http://text-shot.com|text-shot.com>`,
});
Rohith Gilla
05/04/2022, 1:57 PMRohith Gilla
05/04/2022, 3:43 PMthdxr
05/04/2022, 3:44 PM<http://text-shot.com|text-shot.com>
thdxr
05/04/2022, 3:45 PMthdxr
05/04/2022, 3:45 PMRohith Gilla
05/04/2022, 3:48 PMthdxr
05/04/2022, 3:49 PMRohith Gilla
05/04/2022, 3:56 PMBala Chalasani
05/04/2022, 3:57 PMcustomDomain: {
domainName: `notes-api-${scope.stage}.<http://selflearning.com|selflearning.com>`,
hostedZone: `notes-api-${scope.stage}.<http://selflearning.com|selflearning.com>`
},
thdxr
05/04/2022, 3:57 PMthdxr
05/04/2022, 3:58 PM<http://mydomain.com|mydomain.com>
and want domains at <http://stage1.mydomain.com|stage1.mydomain.com>
Rohith Gilla
05/04/2022, 3:58 PM<http://mydomain.com|mydomain.com>
should I still specify hosted zone?Bala Chalasani
05/04/2022, 4:00 PMRohith Gilla
05/04/2022, 4:01 PMTry it with the hostedZone: “text-shot.com” and tell me what error you get
thdxr
05/04/2022, 4:01 PMRohith Gilla
05/04/2022, 4:02 PMBala Chalasani
05/04/2022, 4:03 PMthdxr
05/04/2022, 4:03 PM<http://boxitoff.com|boxitoff.com>
Bala Chalasani
05/04/2022, 4:06 PMBala Chalasani
05/04/2022, 4:08 PMRohith Gilla
05/04/2022, 4:09 PMRohith Gilla
05/04/2022, 4:26 PM