title: aws apigateway cloudfront expressjs app always displaying api-gateway url
body: <p>This is more of a technical question than anything code related.
  I have an <code>expressjs</code> app running on <code>api-gateway</code> using <a href="https://github.com/awslabs/aws-serverless-express" rel="nofollow noreferrer">aws-serverless-express</a> wwhich allows you to port an <code>expressjs</code> app with minimal changes on <code>api-gateway</code>. But because APIG generates a url for you for each deployment of the api, with an api-id in it, this is not client friendly. So I set-up a <code>cloudfront</code> distribution pointing to APIG's url.</p>
  
  <p>However when I run the app, the url displayed in the browser is not the one generated by cloudfront (although I use that url to go to the app) but the one APIG created.</p>
  
  <p>I know there is an option within APIG to set a custom domain name, and that, after doing some research, APIG sets up a Cloudfront Distribution in the background, but because I was not the one setting up the DNS service and do not have permissions to change these settings for this specific role/region on aws, was wondering if the problem lies in the fact that the custom url was not set-up through APIG's options?</p>