import os from flask import Flask, send_from_directory app = Flask(__name__, static_folder=”react_app/build”) # Serve React App @app.route(“https://stackoverflow.com/”, defaults={‘path’: ”}) @app.route(‘/<path:path>’) def serve(path): if path != “” and os.path.exists(app.static_folder + “https://stackoverflow.com/” + path): return send_from_directory(app.static_folder, path) else: return send_from_directory(app.static_folder, ‘index.html’) if __name__ == ‘__main__’: app.run(use_reloader=True, port=5000, threaded=True) Thats what I ended up with. So bascially catch all … Read more