Skip to content

Environments

FRVR.init() takes an environment argument:

FRVR.init('dev');    // development
FRVR.init('beta');   // beta/staging
FRVR.init('prod');   // production (default)
ModeConsole loggingBackendsDefault adsSafety
devVerbose, color‑coded warningsStaging / mockedTest providers auto‑wiredLooser
betaVerboseStagingReal providersLoose
prodMuted (unless you set FRVR.logger = console)ProductionReal providersStrict

A warning banner logs in your browser console whenever you run anything other than prod, so you don’t forget to flip it.

Some modules accept an explicit backend URL that overrides whatever env would pick:

FRVR.config.features = {
  apiUrl: 'https://staging.crucible.frvr.com',
};

FRVR.config.cloudStorage = {
  playerStorage: { env: 'staging' },
};

Set a logger before init():

FRVR.logger = console;
FRVR.init('prod');

Useful for debugging a production build in the field. Remove before shipping.

During local development, the easiest setup is the frvr-channel-dev bundle — it stubs ads, IAP, and other platform‑specific bits so you can click through flows without a live provider:

<script src="https://cdn.frvr.com/sdk/frvr-sdk.min.js"></script>
<script src="https://cdn.frvr.com/sdk/frvr-channel-dev.min.js"></script>

Ship with a real channel bundle (frvr-channel-web, -facebook-instant, -ios, …) — never the dev one.