Glimpse.Prototype icon indicating copy to clipboard operation
Glimpse.Prototype copied to clipboard

Glimpse runs not just on localhost

Open mkarlsson opened this issue 10 years ago • 3 comments

I get Glimpse UI bar at the bottom on staging and production as well. How do I control this? I just added the nuget package and app.UseGlimpse(); in Configure method and services.AddGlimpse(); in ConfigureServices.

mkarlsson avatar Mar 12 '16 19:03 mkarlsson

Hi, try "if (env.IsDevelopment()) { .... }" in your ConfigureServices((IServiceCollection services, IHostingEnvironment env) and Configure(IApplicationBuilder app, IHostingEnvironment env) methods.

skorunka avatar May 23 '16 06:05 skorunka

I was under the impression it was supposed to work anyway?

mkarlsson avatar May 23 '16 06:05 mkarlsson

I don't think so. You have to control if to add Glimpe into app pipeline or not.

skorunka avatar Jun 25 '16 10:06 skorunka