Просмотр исходного кода

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

Claude 5 месяцев назад
Родитель
Сommit
16f5dbf473
1 измененных файлов с 2 добавлено и 3 удалено
  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 { serve } from 'https://deno.land/std@0.168.0/http/server.ts'
-import { wrapHandler } from '../_shared/error-handler.ts'
 
 
 const corsHeaders = {
 const corsHeaders = {
   'Access-Control-Allow-Origin': '*',
   'Access-Control-Allow-Origin': '*',
@@ -25,7 +24,7 @@ const corsHeaders = {
  * Request and response bodies are proxied as-is.
  * Request and response bodies are proxied as-is.
  */
  */
 
 
-serve(wrapHandler('shoprenter-proxy', async (req) => {
+serve(async (req) => {
   // Handle CORS preflight
   // Handle CORS preflight
   if (req.method === 'OPTIONS') {
   if (req.method === 'OPTIONS') {
     return new Response('ok', { headers: corsHeaders })
     return new Response('ok', { headers: corsHeaders })
@@ -155,4 +154,4 @@ serve(wrapHandler('shoprenter-proxy', async (req) => {
       }
       }
     )
     )
   }
   }
-}))
+})