Dual Deployment/Development - Flask On Server & Serverless Framework?

So, I’d like to have two deployment options for the same code base (Python + JS):

  1. Deploy a traditional server-based Python web app – probably using Flask
  2. Deploy a Serverless Framework app – probably with API Gateway + Lambda + Static S3 website

I’ve seen that you can bundle a Flask app into “Serverless WSGI using API Gateway with proxied Lambda” fairly easily but that doesn’t look like a practical solution for developing with these two options. Or maybe it is?

What are my options here, if any?