How to use same domain name for front end and for lambda function endpoints for Serverless framework ?
Create CloudFront distribution and set your front end (i.e. served from S3) as one origin, and API Gateway (entry point to your lambdas) as another origin, and set correspondent behaviours (root goes to front end origin, /api for example - goes to your APIG). I did it manually but you can do it with CloudFormation and embed it into serverless.yml
Hope it helps