mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
* workspace re-org checkpoint * admin route reconciliation * checkpoint consistency fixes * prep merge * regen migration * checkpoint * code cleanup * update docs * add feature for owner to leave + admin route * address comments * fix new account race * address comments
19 lines
497 B
TypeScript
19 lines
497 B
TypeScript
import { relative } from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
import type { Config } from 'drizzle-kit'
|
|
|
|
const schemaPath = relative(process.cwd(), fileURLToPath(new URL('./schema.ts', import.meta.url)))
|
|
const migrationsPath = relative(
|
|
process.cwd(),
|
|
fileURLToPath(new URL('./migrations', import.meta.url))
|
|
)
|
|
|
|
export default {
|
|
schema: schemaPath,
|
|
out: migrationsPath,
|
|
dialect: 'postgresql',
|
|
dbCredentials: {
|
|
url: process.env.DATABASE_URL!,
|
|
},
|
|
} satisfies Config
|