.forestadmin-schema.json

On server start, a .forestadmin-schema.json file will be auto-generated in local (development) environments only. It reflects:

  • the state of your collections.

  • your Forest Admin customization.

This file must be versioned and deployed for any remote environment (staging, production, etc.), as it will be used to generate your Forest UI.

We use the option isProduction in the createAgent function. You can use isProduction: process.env.NODE_ENV === 'production' to manipulate this behavior. Setting this variable to either false will regenerate a new .forestadmin-schema.json file every time your app restarts. Using true will not regenerate the file.

Versioning the.forestadmin-schema.json file will also help you visualize your changes:

Last updated

Was this helpful?

Revision created

docs(datasource-sql): document introspection process