Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

526 B
Raw Blame
import type { Config } from "drizzle-kit";

import { DB_CASING } from "@homarr/core/infrastructure/db/constants";
import { dbEnv } from "@homarr/core/infrastructure/db/env";

export default {
  dialect: "postgresql",
  schema: "./schema",
  casing: DB_CASING,

  dbCredentials: dbEnv.URL
    ? { url: dbEnv.URL }
    : {
        host: dbEnv.HOST,
        port: dbEnv.PORT,
        database: dbEnv.NAME,
        user: dbEnv.USER,
        password: dbEnv.PASSWORD,
      },
  out: "./migrations/postgresql",
} satisfies Config;