# How to configure the Express component to create an 'Edge' API Gateway?

**URL:** <https://forum.serverless.com/t/how-to-configure-the-express-component-to-create-an-edge-api-gateway/15334>\
**Category:** Serverless Framework\
**Created:** [June 17, 2021, 9:17am UTC](https://forum.serverless.com/t/how-to-configure-the-express-component-to-create-an-edge-api-gateway/15334 "2021-06-17T09:17:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monodot](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@monodot](https://forum.serverless.com/u/monodot)\
**Post date:** [June 17, 2021, 9:17am UTC](https://forum.serverless.com/t/how-to-configure-the-express-component-to-create-an-edge-api-gateway/15334/1 "2021-06-17T09:17:05Z")

</div>

I am trying to use the Express ‘serverless component’ to deploy an API. My Lambda code depends on one of the cloudfront-\* headers, specifically ‘cloudfront-viewer-country’.

But it seems that the Express Serverless Component only creates an API Gateway with Endpoint Type ‘Regional’, not ‘Edge’.

Is there a way to get the Express Serverless Component to create an Edge-type API Gateway? It seems that if I use ‘traditional’ (non-Component) Serverless to create a Lambda, then it creates an Edge gateway, so I’m not sure why the Express Component is different.

Excuse if my terminology is a bit muddled, still getting to grips with sls and AWS.

Thanks.
