Setup different APIs per stage

How do I setup my serverless.yml to deploy to different APIs depending on the stage?

Basically I want this…

Not this…

The reason is when I deploy a new stage, the previous stage is replaced. For example, if the API DEV is currently deployed, when I deploy STAGING, DEV is replaced and I can’t access it anymore. Although, I can access STAGING now. I need to always have access to each stage. Perhaps I need a different solution?

I’m specifically looking at the “Separate APIs for each stage” section of the following guide:

maybe you can try to have 3 folders (1/stage) all syncing to [branches of] the same repo?
Mote hackily, maybe renaming the serverless folder in your service directory - isn’t that where serverless ‘remembers’ to which stack the service is deployed?