feat: Add dev mode
All checks were successful
Build Docker / Build Image (push) Successful in 45s

This commit is contained in:
2025-08-05 12:37:54 +10:00
parent cbaf577fa9
commit cf49e5fac1
16 changed files with 55 additions and 55 deletions

View File

@@ -20,7 +20,7 @@ exchange = {
'rate': 0
}
DEV = os.getenv('DEV', 'false').lower() in ['true', '1', 'yes']
tlds = ['australia','newzealand']
#Assets routes
@@ -400,7 +400,7 @@ def index():
year = datetime.datetime.now().year
hns_scripts = '<script src="https://gday.hnsau/handshake.js" domain="gday.hnsau" async></script><script src="https://gday.hnsau/https.js" async></script>'
if 'localhost' in request.host or '127.0.0.1' in request.host:
if 'localhost' in request.host or '127.0.0.1' in request.host or DEV:
hns_scripts = ''
tld = request.host.split('.')[-1]
@@ -419,7 +419,7 @@ def catch_all(path):
year = datetime.datetime.now().year
hns_scripts = '<script src="https://gday.hnsau/handshake.js" domain="gday.hnsau" async></script><script src="https://gday.hnsau/https.js" async></script>'
if 'localhost' in request.host or '127.0.0.1' in request.host:
if 'localhost' in request.host or '127.0.0.1' in request.host or DEV:
hns_scripts = ''
# If file exists, load it