# Configuration

## Overview

The configuration variables related to your app are stored in `/assets/custom/js/config.js` file.

You can store configuration variables such as app settings, API keys related to third-party services inside this file.

The example structure for storing variables is:

```javascript
window.config.facebook {
    appId: '12345678987654321'
}
```

In the same way, you can store config variables inside `window.config` object.

## Accessing Configuration Variables

You can access these variables from inside JavaScript or from inside the HTML template literals.

```javascript
// Accessing from inside JavaScript
console.log(window.config.facebook.appId);

// Or you can also access this way, once your app is initialized.
console.log(app.config.facebook.appId); // This is the recommended way
```

```html
<!-- Accessing from inside HTML template literals -->
<template>
    <div>${$f7.config.facebook.appId}}</div> <!-- After parsing, the output will be 12345678987654321 -->
</template>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pmsgz.gitbook.io/nectar/basics/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
