Question:
I am using serverless framework. I have set the stage as the dev and deploying using sls deploy –stage dev command. The dev stage is not added to the end point. The endpoints are not like the one given below:serverless.yml
Answer:
Serverless Framework does things a bit differently and instead of using stages of APIGW, it creates a totally new APIGW for each stage, that’s why you don’t see the prefix in your path with the stage name, but if you observe the url, you’ll see that the base url will be different across stages. That’s how you can differentiate between them.If you have better answer, please add a comment about this, thank you!