Serving a folder named static:
from flask import Flask, send_from_directory
app = Flask(__name__)
@app.route('/static/<path:path>')
def static_assets(path):
return send_from_directory('static', path)
Serving a built frontend project (eg. Vue, React)
In this example, the built project