From 3a23dc81dc7e3470455cb136bce4670df970b291 Mon Sep 17 00:00:00 2001 From: Chad Kruse <314653+chadokruse@users.noreply.github.com> Date: Fri, 15 Nov 2024 15:42:09 -0600 Subject: [PATCH] Fix r2 namespace routes --- apps/api/src/router.ts | 4 ++-- turbo.json | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/api/src/router.ts b/apps/api/src/router.ts index 7c58ca4..80afc54 100644 --- a/apps/api/src/router.ts +++ b/apps/api/src/router.ts @@ -29,7 +29,7 @@ router // Validate EIN if (isValidEin(ein)) { - return fetchR2Object(env, key, namespace); + return fetchR2Object(env, namespace, key); } return new Response('Invalid EIN format', { status: 400 }); @@ -45,7 +45,7 @@ router // Validate EIN if (isValidEin(ein)) { - return fetchR2Object(env, key, namespace); + return fetchR2Object(env, namespace, key); } return new Response('Invalid EIN format', { status: 400 }); diff --git a/turbo.json b/turbo.json index deee6c9..1c5b107 100644 --- a/turbo.json +++ b/turbo.json @@ -16,6 +16,11 @@ "dev": { "cache": false, "persistent": true + }, + "preview": { + "dependsOn": ["^preview"], + "cache": false, + "persistent": true } } }