From dbb90beb759fc881c2616bc06d8e2518602e36c3 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sun, 7 Sep 2025 18:16:35 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/src/lib/storage.ts | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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" },