servedByOwnServer property

bool servedByOwnServer
getter/setter pair

Whether this build is served by its own generated server, which signs accounts up and in at /auth/sign-in.

dartvel build web-server states it through DARTVEL_WEB_SERVER: the page cannot tell at run time what binary served it. When it is true the in-memory DVLocalAuthProvider -- a development adapter -- yields to the installed default provider, so the prebuilt account pages and every DV.Auth call reach the accounts the server keeps rather than a map in the browser tab. A provider the application wrote is never overridden.

Implementation

static bool servedByOwnServer =
    const bool.fromEnvironment('DARTVEL_WEB_SERVER');