Fix build
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit

This commit is contained in:
Peter Bastiani 2024-01-30 10:52:02 +01:00
parent 4bda94c360
commit a05c1fa874
2 changed files with 2 additions and 6 deletions

View File

@ -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();
}
}

View File

@ -34,9 +34,6 @@
],
"ngx-openlayers/*": [
"dist/ngx-openlayers/*"
],
"@environment/*": [
"src/environments/*"
]
},
"useDefineForClassFields": false