fix: enable non-access-key flows

This commit is contained in:
Alexander Nicholson 4584443+DragonStuff@users.noreply.github.com
2024-11-20 18:37:13 +09:00
parent 62562c9af6
commit 4d22d93e90
3 changed files with 19 additions and 19 deletions

View File

@@ -5,12 +5,10 @@ import { objectList } from "../templates/components/object_list.ts";
const apiRoutes = new Hono();
const storageService = new StorageService(
Deno.env.get("S3_BUCKET") || "",
Deno.env.get("S3_REGION") || "",
Deno.env.get("AWS_ACCESS_KEY_ID") || "",
Deno.env.get("AWS_SECRET_ACCESS_KEY") || "",
);
const storageService = new StorageService({
bucket: Deno.env.get("S3_BUCKET") || "",
region: Deno.env.get("S3_REGION") || ""
});
const searchService = new SearchService(storageService);