fix(cli): respect KANDEV_DATABASE_PATH env var in dev mode (#548)

This commit is contained in:
Carlos Florêncio
2026-04-06 13:33:07 +01:00
committed by GitHub
parent 6d81734c66
commit c8efd31f06
+2 -1
View File
@@ -21,7 +21,8 @@ export type DevOptions = {
export async function runDev({ repoRoot, backendPort, webPort }: DevOptions): Promise<void> {
const ports = await pickPorts(backendPort, webPort);
const dbPath = path.join(repoRoot, "apps", "backend", "kandev.db");
const dbPath =
process.env.KANDEV_DATABASE_PATH || path.join(repoRoot, "apps", "backend", "kandev.db");
const extra: Record<string, string> = {
KANDEV_DATABASE_PATH: dbPath,