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.