Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions configuration/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
},
],
};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
```

See [module configuration](/modules/configuration) for more information and
Expand Down Expand Up @@ -96,6 +99,11 @@ debugging:
server security header behavior.
- `hideConfigSecrets` is documented in detail in [Secrets](./secrets).

When you use functions in `config.js`, keep them inside the exported `config`
object if they need to be available in the browser. MagicMirror² serves the
browser copy of the configuration from the `config` object, so free-standing
helper functions outside that object are not included there.

#### Bash Environment variables

There are two environment variables that override part or all of config.js. They
Expand Down