From a05c1fa8746d031b2d0c88b3700172a1441092c9 Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Tue, 30 Jan 2024 10:52:02 +0100 Subject: [PATCH] Fix build --- projects/common/src/fm/services/production-guard.service.ts | 5 ++--- tsconfig.json | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) 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