Skip to content

Instantly share code, notes, and snippets.

@murbanowicz
Created April 8, 2020 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save murbanowicz/67bba0214ff0326cdb377592fd90d9be to your computer and use it in GitHub Desktop.
Save murbanowicz/67bba0214ff0326cdb377592fd90d9be to your computer and use it in GitHub Desktop.
public void Configure(IApplicationBuilder app)
{
app.UseSpa(builder =>
{
builder.Options.SourcePath = "frontend";
if (Environment.IsDevelopment())
{
builder.UseProxyToSpaDevelopmentServer("http://localhost:3001");
// builder.UseReactDevelopmentServer("start");
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment