Skip to content

Commit 04074d3

Browse files
committed
core: enable prod channel to use shared production database
Ensures users on the prod channel have their data persisted to the same database as latest and beta channels, preventing data fragmentation across different release channels.
1 parent eac50f9 commit 04074d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/opencode/src/storage

packages/opencode/src/storage/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const log = Log.create({ service: "db" })
2929

3030
export namespace Database {
3131
export function getChannelPath() {
32-
if (["latest", "beta"].includes(CHANNEL) || Flag.OPENCODE_DISABLE_CHANNEL_DB)
32+
if (["latest", "beta", "prod"].includes(CHANNEL) || Flag.OPENCODE_DISABLE_CHANNEL_DB)
3333
return path.join(Global.Path.data, "opencode.db")
3434
const safe = CHANNEL.replace(/[^a-zA-Z0-9._-]/g, "-")
3535
return path.join(Global.Path.data, `opencode-${safe}.db`)

0 commit comments

Comments
 (0)