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
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m38s
This commit is contained in:
@@ -18,6 +18,9 @@ import json
|
|||||||
import urllib.request
|
import urllib.request
|
||||||
import urllib.error
|
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('/')
|
API_BASE_URL = os.environ.get('API_BASE_URL', 'http://localhost:5000').rstrip('/')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -147,8 +147,8 @@ const submit = async () => {
|
|||||||
if (!isPushOptedOut()) {
|
if (!isPushOptedOut()) {
|
||||||
subscribeToPushWithResult() // fire-and-forget — browser gesture is satisfied by the PIN button click
|
subscribeToPushWithResult() // fire-and-forget — browser gesture is satisfied by the PIN button click
|
||||||
}
|
}
|
||||||
close()
|
|
||||||
const returnUrl = consumePendingReturnUrl()
|
const returnUrl = consumePendingReturnUrl()
|
||||||
|
close()
|
||||||
router.push(returnUrl || '/parent')
|
router.push(returnUrl || '/parent')
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
error.value = 'Network error'
|
error.value = 'Network error'
|
||||||
|
|||||||
Reference in New Issue
Block a user