web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

_BaseUrl, _HostUrl,

(0) ShareShare
ReportReport
Posted on by

Hello,

Can someone please help me on the below questions,

MSDyn365Commerce_BASEURL
      1. where can I get this retail server URL from if we have few test sandboxes and few dev machines ?
      2. What does it mean having this retail server URL in the .env file ?

MSDyn365_HOST - where can I get the HOST URL ?
      1. Where can I get this HOST URL ?
      2. What is the use of it ?
After installing a VS code editor, NodeJS, Yarn - when I run local localhost:4000/ for the first time what should happen ? Will this display a blank page ? So what is that we want to render from MSDyn365Commerce_BASEURL to this blank page ?
  • Verified answer
    Sam Jarawan Profile Picture
    Microsoft Employee on at

    Hi Nithin,

    This document explains where to get the values:  Configure a development environment (.env) file - Commerce | Dynamics 365 | Microsoft Docs

    So it depends on what you are trying to achieve.  The MSDyn365Commerce_BASEURL allows you to point to one of your scale units so that as you are building and testing modules you can get live data from those servers to test with.  However this isn't necessary if you are building and using mock data to test with.  The MSDyn365_HOST value allows you to view your live production or sandbox environment rendered on your local Node environment.  So for example lets say you start changing modules and themes, you can see how they would  look on your live site but rendered locally.  That's when you would use your localhost:4000 URL, you should see your live prod/sandbox site the same as if you took the URL you provided in the variable and opened it in browser.   This is also not required when building with the SDK, just extra support, it's also helpful in debugging issues on your live site, because then you can put breakpoints in code on the local dev environment and step through.

    Hope that helps,

    Sam

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 115 Super User 2026 Season 2

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 103 Super User 2026 Season 2

#3
Aayush Tiwari Profile Picture

Aayush Tiwari 48

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans