Skip to main content
Enterprise OnlyVersion: current

Falcon Server Configuration

Accessing server config is simple.

As your APIs, payments, components and extensions are all defined in the config files themselves you are able to pass config variables at that point.

server/config/default.json

{
"package": "your-package",
"config": {
"title": "MY METHOD"
}
}

This config is available within the constructor method:

your-package/index.js

module.exports = class YourPackage {
constructor(code, config) {
this.config = config;
}
get title() {
return this.config.title; // returns 'MY METHOD'
}
}

Ask the community. #help

If you can't find what you're looking for, the answer might be on our community slack channel. Our team keep a close eye on this and will usually get back to you within a few hours, if not straight away. If you haven't created an account yet please sign up here slack.deity.io.

Stay up to date

Do you want to be informed when we release new features or fixes? Sign up to our newsletter to stay in the loop.