config | R Documentation |
Configure Firebase, either using a config file or by setting environment variables (see section below).
firebase_config(
api_key,
project_id,
auth_domain = NULL,
storage_bucket = NULL,
app_id = NULL,
database_url = NULL,
overwrite = FALSE
)
api_key |
API key of your project. |
project_id |
Id of your web project. |
auth_domain |
Authentication domain, if |
storage_bucket |
URl to the bucket. if |
app_id |
Application ID, necessary for Analytics. |
database_url |
URL to the database, required to use
the |
overwrite |
Whether to overwrite any existing configuration file. |
Creates the configuration file necessary to running fireblaze. Note that if you changed the project you must use said ID here, not the one originally created by Google.
Classes of the package look first for the configuration file then, if not found look for the environment variables.
Path to file.
FIREBASE_API_KEY
FIREBASE_PROJECT_ID
FIREBASE_AUTH_DOMAIN
FIREBASE_STORAGE_BUCKET
FIREBASE_APP_ID
FIREBASE_DATABASE_URL
Do not share this file with anyone.
## Not run: firebase_config("xXxxx", "my-project")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.