Overriding default archibald configuration
Create local config file
When a new project is created from a template, there is a default configuration created. The default configuration can be found in the archibald.json file.
During the local development you might want to change some configuration. It could be cumbersome to work with the configuration directly in the archibald.json file because you don't want to commit it the changes to your source control management (SCM) system.
Fortunately Archibald allows you to override the configuration in the archibald.json file by defining configuration in the archibald.local.json file.
To override the default configuration you have to do the following:
-
Create the
archibald.local.jsonfile in the root directory of your project. -
In the
archibald.local.jsonfile, use the schema from thearchibald.jsonfile to get the autocompletion.
{
"$schema": "./node_modules/@archibald/cli/workspace/workspace-schema.json"
}
- Start adding custom configuration to the
archibald.local.jsonfile. E.g., change the default port.
{
"$schema": "./node_modules/@archibald/cli/workspace/workspace-schema.json",
"cli": {
"port": 4000
}
}
- Add the
archibald.local.jsonfile to the.gitignorefile.