Parcourir la source

chore: typo backendUrl default url (#118)

invalid w il y a 1 an
Parent
commit
8f88b26292

+ 1 - 1
src/admin/components/onboarding-flow/default/products/product-detail.tsx

@@ -16,7 +16,7 @@ const ProductDetailDefault = ({ onNext, isComplete, data }: StepContentProps) =>
   const api_key = useMemo(() => keys?.[0]?.id || "", [keys])
   const backendUrl = process.env.MEDUSA_BACKEND_URL === "/" || process.env.MEDUSA_ADMIN_BACKEND_URL === "/" ? 
     location.origin :
-    process.env.MEDUSA_BACKEND_URL || process.env.MEDUSA_ADMIN_BACKEND_URL || "http://location:9000"
+    process.env.MEDUSA_BACKEND_URL || process.env.MEDUSA_ADMIN_BACKEND_URL || "http://localhost:9000"
 
   useEffect(() => {
     if (!isLoading && !keys?.length) {