Support for overriding the PublicWebBaseURL server setting on-premises

Important

This content is archived and is not being updated. For the latest documentation, go to What's new and planned for Dynamics 365 Business Central. For the latest release plans, go to Dynamics 365, Power Platform, and Cloud for Industry release plans.

Enabled for Public preview General availability
Admins, makers, marketers, or analysts, automatically Mar 1, 2023 Apr 1, 2023

Business value

How many times have you hit F5 and been sent to http://somecomputername:48900/ instead of http://localhost:48900 like you expected and then have to fix the URL in the browser yourself? At least during base application development this has been a nuisance, and thus we have introduced a new parameter in the launch.json configuration called usePublicURLFromServer, which when set to false, will override the NST setting and instead use the host provided in the launch.json server property.

Feature details

A new usePublicWebURLFromServer option has been added to the launch.json file.

If it's set to false, the PublicWebBaseURL server (NST) setting will be overridden with the server parameter of the launch.json when launching the browser using that launch configuration. This option only affects launching debug sessions to on-premises servers.

If set to true, the PublicWebBaseURL server setting will be used.

On the Business Central product team, we almost never want to use the server setting and instead want to use the server specified in the launch.json; however, for now the default for usePublicWebURLFromServer is true to retain legacy behavior as the standard behavior.

Tell us what you think

Help us improve Dynamics 365 Business Central by discussing ideas, providing suggestions, and giving feedback. Use the forum at https://aka.ms/bcideas.

See also

JSON Files (docs)