An example of using Serverless Component to deploy a website that allow you to deploy website with multiple stages/environments.
Run this command will deploy a website for dev
environment
sls --env=dev
or you can change to another environment
sls --env=prod
you also can remove the website
sls remove --env=dev