Browse Source

fix: correct ShopRenter API domain to api2.myshoprenter.hu #55

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

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

@@ -79,8 +79,8 @@ serve(async (req) => {
 
 
     const apiPath = pathMatch[1]
     const apiPath = pathMatch[1]
 
 
-    // Construct ShopRenter API URL - always use standard .shoprenter.hu domain
-    const shopRenterUrl = `https://${shopName}.shoprenter.hu${apiPath}${url.search}`
+    // Construct ShopRenter API URL - use api2.myshoprenter.hu domain
+    const shopRenterUrl = `https://${shopName}.api2.myshoprenter.hu${apiPath}${url.search}`
 
 
     console.log(`[ShopRenter Proxy] Forwarding ${req.method} request to: ${shopRenterUrl}`)
     console.log(`[ShopRenter Proxy] Forwarding ${req.method} request to: ${shopRenterUrl}`)