We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent feede25 commit 403860eCopy full SHA for 403860e
1 file changed
web/src/app/api/releases/download/[version]/[filename]/route.ts
@@ -17,8 +17,11 @@ export async function GET(
17
return NextResponse.json({ error: 'Missing parameters' }, { status: 400 })
18
}
19
20
+ // Freebuff releases use a "freebuff-v" tag prefix to avoid colliding with codebuff releases
21
+ const tagPrefix = filename.startsWith('freebuff-') ? 'freebuff-v' : 'v'
22
+
23
// Current download location - can be changed in the future without affecting old clients
- const downloadUrl = `https://github.com/CodebuffAI/codebuff-community/releases/download/v${version}/${filename}`
24
+ const downloadUrl = `https://github.com/CodebuffAI/codebuff-community/releases/download/${tagPrefix}${version}/${filename}`
25
26
return NextResponse.redirect(downloadUrl, 302)
27
0 commit comments