Skip to content

Commit

Permalink
fix: aws signed urls (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
Encord-davids authored Sep 6, 2023
1 parent 32d4ca1 commit 4325918
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/encord_active/frontend/src/hooks/useImageSrc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { useQuery } from "@tanstack/react-query";
import axios from "axios";

const NO_AUTH_PATTERNS = ["ea-sandbox-static", "storage.googleapis.com"];
const NO_AUTH_PATTERNS = [
"ea-sandbox-static",
"storage.googleapis.com",
"s3.amazonaws.com",
];

export const useImageSrc = (url: string) =>
useQuery([url], async () => {
Expand Down

0 comments on commit 4325918

Please sign in to comment.