Development

This commit is contained in:
Matthew Grotke 2026-06-11 01:49:59 -04:00
parent 4b44fdf65a
commit ce280b6d7a
6 changed files with 20 additions and 6 deletions

View file

@ -1,6 +1,15 @@
import os
def product_name():
return os.environ.get('PRODUCT_NAME', 'routlin')
def web_app_display_name():
edition = 'Pro' if is_pro() else 'CE'
return os.environ.get('WEB_APP_DISPLAY_NAME', f'{product_name().capitalize()}-{edition}')
def is_production():
return not os.environ.get('DEV_MODE', '').lower() in ('1', 'true', 'yes')