diff --git a/projects/common/src/fm/services/production-guard.service.ts b/projects/common/src/fm/services/production-guard.service.ts index 2f8b873..3093c36 100644 --- a/projects/common/src/fm/services/production-guard.service.ts +++ b/projects/common/src/fm/services/production-guard.service.ts @@ -1,11 +1,10 @@ -import { Injectable } from '@angular/core'; -import { environment } from '@environment/environment'; +import { Injectable, isDevMode } from '@angular/core'; @Injectable({ providedIn: 'root', }) export class ProductionGuard { canActivate(): boolean { - return environment.production; + return !isDevMode(); } } diff --git a/tsconfig.json b/tsconfig.json index e1d5faf..8439a52 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -34,9 +34,6 @@ ], "ngx-openlayers/*": [ "dist/ngx-openlayers/*" - ], - "@environment/*": [ - "src/environments/*" ] }, "useDefineForClassFields": false