from flask_site import freezer, config

if __name__ == '__main__':
    freezer.run(debug=config.get('debug'))  # build and serve from build directory

from flask_site import freezer, flask_config

if __name__ == '__main__':
    freezer.run(debug=flask_config.get('DEBUG'))  # build and serve from build directory

Fix freezing debug or not
Fix freezing debug or not
