Skip to main content

Configuration

View as Markdown

A new EventCatalog project is ready to run when you create it. Change the configuration only when you want to change one of these:

  • how the catalog behaves
  • where the catalog builds
  • which features are on

The configuration is in the eventcatalog.config.js file, in the root folder of your project. To see all the settings that you can change, read the configuration reference.

Configuring environment variables​

Some features need values that you must not put in eventcatalog.config.js, for example API keys or the credentials of a provider.

Put these values in a .env file, in the root folder of your catalog. EventCatalog reads the .env file when it runs on your computer and when it builds.

.env (example)
OPENAI_API_KEY=your-api-key

Do not commit real secrets to Git.

EventCatalog has a linter. The linter checks your EventCatalog documentation for errors.

For more information, read the EventCatalog Linter documentation.