import { defineConfig } from 'drizzle-kit';
import { join } from 'node:path';
import { homedir } from 'node:os';

export default defineConfig({
  schema: './apps/server/db/schema.ts',
  out: './apps/server/drizzle',
  dialect: 'sqlite',
  dbCredentials: {
    url: process.env.CW_DB_PATH ?? join(homedir(), '.cw', 'data', 'cw.db'),
  },
});
