Skip to content

Configuring monolayer

monolayer-pg will read your root monolayer.config.ts file to be able to manage your database schemas.

TIP

If you installed monolayer-pg with create-pg, the file is autogenerated.


After importing defineConfig from @monolayer/pg/config, you export a default configuration.

ts
import { defineConfig } from "@monolayer/pg/config";

export default defineConfig({
  databases: "app/db/databases.ts",
});

See the list of config options in the Config API Reference.