diff --git a/apps/api/src/lib/storage.ts b/apps/api/src/lib/storage.ts index 2a257179..7e720e25 100644 --- a/apps/api/src/lib/storage.ts +++ b/apps/api/src/lib/storage.ts @@ -18,6 +18,7 @@ import { env } from './env' // This storage client is designed to work with any S3-compatible storage provider. // For Cloudflare R2, see https://developers.cloudflare.com/r2/examples/aws/aws-sdk-js-v3/ +const STORAGE_DOMAIN = 'storage.agentic.so' const Bucket = env.S3_BUCKET export const storageClient = new S3Client({ @@ -117,7 +118,7 @@ export async function uploadFileUrlToStorage( throw new Error(`Invalid source file URL: ${inputUrl}`) } - if (source.hostname === 'storage.agentic.so') { + if (source.hostname === STORAGE_DOMAIN) { // The source is already a public URL hosted on Agentic's blob storage. return source.toString() } diff --git a/package.json b/package.json index 6b40d2e6..e84ce45a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "type": "git", "url": "git+https://github.com/transitive-bullshit/agentic.git" }, - "packageManager": "pnpm@10.13.1", + "packageManager": "pnpm@10.15.0", "engines": { "node": ">=20" },