0

I'm using LitElements to build my frontend. I want to configure .net core mvc spa with it.

here how my config looks like: Startup.cs

app.UseSpa(spa =>
{
    spa.Options.SourcePath = "wwwsrc";

    if (env.IsDevelopment())
    {
        spa.UseProxyToSpaDevelopmentServer("http://localhost:8000");
    }
});

When I run http://localhost:8000 it serves proper dev version. But when I run .net core app on http://localhost:50001/ it shows build production version and I have to run npm run build in order to see my changes. How do I configure .net core app in order to see dev version?

Milo
  • 3,365
  • 9
  • 30
  • 44
motemood
  • 41
  • 1
  • 2

1 Answers1

0

Use the Project Launch Settings or Environment variable to control the Environment.

Refer this official documentation for more details.

Sathish Guru V
  • 1,417
  • 2
  • 15
  • 39