docs: typo backendUrl default url (#6073)
`http://location:9000` should be `http://localhost:9000`
This commit is contained in:
@@ -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 api_key = useMemo(() => keys?.[0]?.id || "", [keys])
|
||||||
const backendUrl = process.env.MEDUSA_BACKEND_URL === "/" || process.env.MEDUSA_ADMIN_BACKEND_URL === "/" ?
|
const backendUrl = process.env.MEDUSA_BACKEND_URL === "/" || process.env.MEDUSA_ADMIN_BACKEND_URL === "/" ?
|
||||||
location.origin :
|
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(() => {
|
useEffect(() => {
|
||||||
if (!isLoading && !keys?.length) {
|
if (!isLoading && !keys?.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user