Skip to content
6 changes: 4 additions & 2 deletions packages/opencode/drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import os from "os"
import path from "path"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[🔴 HIGH] The os module is missing an import. Please add import os from "os" since os.homedir() is used below.

Suggested change:

Suggested change
import path from "path"
import os from "os"
import path from "path"

import { defineConfig } from "drizzle-kit"

export default defineConfig({
dialect: "sqlite",
schema: "./src/**/*.sql.ts",
out: "./migration",
dbCredentials: {
url: "/home/thdxr/.local/share/opencode/opencode.db",
url: process.env.OPENCODE_DB_URL || path.join(os.homedir(), ".local", "share", "opencode", "opencode.db"),
Comment thread
coderabbitai[bot] marked this conversation as resolved.
},
})
})
Loading