feat: add environment variable support for admin user creation in backend
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m38s

This commit is contained in:
2026-04-21 16:07:07 -04:00
parent 6b3e2cd9ba
commit 60dbb8a129
2 changed files with 4 additions and 1 deletions

View File

@@ -18,6 +18,9 @@ import json
import urllib.request
import urllib.error
# NOTE: When targeting a proxied frontend URL (e.g. nginx), append /api to the URL.
# e.g. API_BASE_URL=https://dev.chores.ryankegel.com/api
# Without /api, nginx will not forward requests to the backend and will return 405.
API_BASE_URL = os.environ.get('API_BASE_URL', 'http://localhost:5000').rstrip('/')