title: .Net Core 2.1 - Read appsettings.json in javascript file
body: <p>I have a Web application in .net Core 2.1 using signalR. I need to pass HubUrl into  custom javascript file. Is that possible in .net Core?</p>
  
  <p>Sample of js code:</p>
  
  <pre><code>const connection = new signalR.HubConnectionBuilder()
  .withUrl('http://localhost:5000/hub') //Here I need to read appSettings.json to get value from there
  .configureLogging(signalR.LogLevel.Information)
  .build();
  </code></pre>