From 62c48abb81d7b038e04a6a85aae9c4ffc74075ef Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Wed, 13 Dec 2023 19:22:23 +0100 Subject: [PATCH] Proxy --- apps/dashboard/src/app/api/proxy/route.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/dashboard/src/app/api/proxy/route.ts b/apps/dashboard/src/app/api/proxy/route.ts index f08c9f2558..74df61c14f 100644 --- a/apps/dashboard/src/app/api/proxy/route.ts +++ b/apps/dashboard/src/app/api/proxy/route.ts @@ -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!, }, }