serverless-express icon indicating copy to clipboard operation
serverless-express copied to clipboard

[404 Not Found] API Gateway HTTP Protocol Path Matching with stage

Open anne-montoya opened this issue 1 year ago • 3 comments

We have an HTTP protocol API that has 2 deployment stages: test and prod. My understanding is the way the package match for a path is through the API Gateway Event rawPath property. When the API has stages the rawPath will look like this /{stage}/my-path and will not match with any path.

anne-montoya avatar May 24 '23 06:05 anne-montoya

Could you try the v5 branch https://github.com/vendia/serverless-express/pull/649? We'll merge this after additional verification.

brett-vendia avatar May 25 '23 20:05 brett-vendia

please, fix this, I'm really craving this change. I don't want to have to buy a domain to test a simple feature in a framework i'm working on to get up and running with it

mococa avatar Jun 09 '23 18:06 mococa

I have defined the routes using /:stage?/my-path so I can capture the stage and ignore it. I wait for v5 so I can get rid of this workaround

DavidFlorin avatar Apr 03 '24 09:04 DavidFlorin