Browse Source

fix: remove error-handler dependency from shoprenter-proxy #55

Claude 5 months ago
parent
commit
16f5dbf473
1 changed files with 2 additions and 3 deletions
  1. 2 3
      supabase/functions/shoprenter-proxy/index.ts

+ 2 - 3
supabase/functions/shoprenter-proxy/index.ts

@@ -1,5 +1,4 @@
 import { serve } from 'https://deno.land/std@0.168.0/http/server.ts'
-import { wrapHandler } from '../_shared/error-handler.ts'
 
 const corsHeaders = {
   'Access-Control-Allow-Origin': '*',
@@ -25,7 +24,7 @@ const corsHeaders = {
  * Request and response bodies are proxied as-is.
  */
 
-serve(wrapHandler('shoprenter-proxy', async (req) => {
+serve(async (req) => {
   // Handle CORS preflight
   if (req.method === 'OPTIONS') {
     return new Response('ok', { headers: corsHeaders })
@@ -155,4 +154,4 @@ serve(wrapHandler('shoprenter-proxy', async (req) => {
       }
     )
   }
-}))
+})