Deploy your app in us-east-1 with your custom domain is easy! First add customDomain flag as true, then you will just need your hostedZoneId from your AWS Route 53 hostedZone and the domain or subdomain of your choice. Once you have those two values add them to your gothic-config.json as shown below (we recommend storing your hosted zone id in Parameter Store as shown in the example as it is sensitive information):
{
"projectName" : "gothic-example" ,
"goModuleName" : "github.com/felipegenef/gothicframework/v2" ,
"optimizeImages" : {
"lowResolutionRate" : 20 ,
}
"deploy" : {
"serverMemory" : 128 ,
"serverTimeout" : 30 ,
"region" : "us-east-1" ,
"customDomain" : true ,
"profile" : "default" ,
"stages" : {
"dev" : {
"hostedZoneId" : "{{resolve:ssm:/gothicframework/dev/hostedZoneId}}" ,
"customDomain" : "dev.mycustomDomain.com" ,
"certificateArn" : null ,
"wafArn" : null ,
"env" : {}
}
}
}
} Did you like this session for deploy your app with a custom domain? Check out how to deploy your app with a custom domain in a custom region!