legacy-knowledge-base
公開されました Jun. 30, 2025

How can I use environment variables to get the URL of other CX micro-services?

written-by

Ally McGill

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • Currently we can access the dynamic urls for DXP using the following variables.
  • "LIFERAY_ROUTES_CLIENT_EXTENSION": "/etc/liferay/lxc/ext-init-metadata",
  • "LIFERAY_ROUTES_DXP": "/etc/liferay/lxc/dxp-metadata"
  • Is there a way we can access the same URLs for other CX micro-services?

Environment

  • Liferay SaaS

Resolution

  • You can use a combination of LCP_SERVICE_ID and LCP_PROJECT_ID environment variables to create the URL: https://LCP_SERVICE_ID-LCP_PROJECT_ID.lfr.cloud

 

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base