Set parameters at runtime
c-service-worker
is currently built using config.json
values as compile-time settings:
-
serverUrl
: the fallback C-Service URL, whose requests are intercepted -
url
: the CouchDB server URL -
username
,password
: CouchDB credentials
All these settings should be provided by the application through C-Client at session opening.
serverUrl
could be provided at ServiceWorker registration instead.