Skip to content

Commit

Permalink
Proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 13, 2023
1 parent 2aeb940 commit 62c48ab
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions apps/dashboard/src/app/api/proxy/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ export async function GET(req) {
const requestUrl = new URL(req.url);
const filePath = requestUrl.searchParams.get("filePath");

console.log(
`${process.env.NEXT_PUBLIC_SUPABASE_URL}/storage/v1/object/${filePath}`
);

return fetch(
`${process.env.NEXT_PUBLIC_SUPABASE_URL}/storage/v1/object/${filePath}`,
{
headers: {
// TODO: Use current user token instead
authorization: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
},
}
Expand Down

0 comments on commit 62c48ab

Please sign in to comment.