Is there any reason to deploy it on an actual server rather than deploying it as a static website other than using environment variables?
No reason at all depending on your needs. If you're deploying on an actual server, you will need to take a different approach. Serverless helps take some work off your hands when deploying applications. But if your use-case demands an actual server, then you go for it.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.