docs: typo backendUrl default url (#6073)

`http://location:9000` should be `http://localhost:9000`
This commit is contained in:
invalid w
2024-01-12 22:11:29 +08:00
committed by GitHub
parent fade8ea7bf
commit 57e00e7803

View File

@@ -1240,7 +1240,7 @@ Notice that as there are two types of flows, you'll be creating the components f
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) {