Skip to main content

Configuration

Manifest embraces the convention over configuration concept: it assumes several logical situations by default without showing you the setting to keep things as simple as possible.

Nevertheless there is still the possibility to adapt your Manifest app to your needs, especially through the .env file. Here are the list of available environment variables:

General variables

General environment variables.

VariableDefaultDescription
NODE_ENVdevelopmentThe app environment. For production and staging instances, it should be set to production, mostly to turn off live reload on file change.
PORT1111The port of your app. You can either adapt your server settings to listen to 1111 or change here to your server's default (usually 3000)
BASE_URLhttp://localhost:$PORTThe base url of your backend. Change it when deploying if you use file or image upload
OPEN_API_DOCStrue unless NODE_ENV=productionShows or not the OpenAPI doc (formerly Swagger) for your REST API at /api. Make sure to set to true if you want to display on production

Paths

Environment variables related to paths.

VariableDefaultDescription
PUBLIC_FOLDER/publicThe public folder to show static files
MANIFEST_HANDLERS_FOLDER/manifest/handlersThe folder to put your handlers functions for custom endpoints
MANIFEST_FILE_PATH/manifest/backend.ymlThe relative or absolute path of your Manifest YAML file

Database

By default Manifest runs with SQLite to enable instant launch with the npx add-manifest@latest command. We recommend to switch to PostgreSQL on production for more robustness and to choose from a large number of cloud/DBaaS providers.

VariableDefaultDescriptionApplies To
DB_CONNECTIONsqliteChoose postgres to switch to PostgreSQLBoth
DB_PATH/manifest/backend.dbPath of the database. Your server should have access to this path locallySQLite
DB_PORT5432Database portPostgreSQL
DB_USERNAMEpostgresDatabase usernamePostgreSQL
DB_PASSWORDpostgresDatabase passwordPostgreSQL
DB_DATABASEmanifestDatabase namePostgreSQL
DB_SSLfalseRequire SSL for DB connection. Set to true if using remote DB.PostgreSQL