Skip to content

Commit dbb90be

Browse files
🍚
1 parent 767fa7e commit dbb90be

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

β€Žapps/api/src/lib/storage.tsβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { env } from './env'
1818
// This storage client is designed to work with any S3-compatible storage provider.
1919
// For Cloudflare R2, see https://developers.cloudflare.com/r2/examples/aws/aws-sdk-js-v3/
2020

21+
const STORAGE_DOMAIN = 'storage.agentic.so'
2122
const Bucket = env.S3_BUCKET
2223

2324
export const storageClient = new S3Client({
@@ -117,7 +118,7 @@ export async function uploadFileUrlToStorage(
117118
throw new Error(`Invalid source file URL: ${inputUrl}`)
118119
}
119120

120-
if (source.hostname === 'storage.agentic.so') {
121+
if (source.hostname === STORAGE_DOMAIN) {
121122
// The source is already a public URL hosted on Agentic's blob storage.
122123
return source.toString()
123124
}

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "git",
88
"url": "git+https://github.com/transitive-bullshit/agentic.git"
99
},
10-
"packageManager": "pnpm@10.13.1",
10+
"packageManager": "pnpm@10.15.0",
1111
"engines": {
1212
"node": ">=20"
1313
},

0 commit comments

Comments
Β (0)