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 } } }