Skip to main content

Notifications

Announcements

No record found.

Commerce forum
Answered

_BaseUrl, _HostUrl,

Posted on by Microsoft Employee

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
    Sam Jarawan on at
    RE: _BaseUrl, _HostUrl,

    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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans