NIFI-13391: (#8960)

- Setting up different environment files to configure ngrx store.
This commit is contained in:
Matt Gilman 2024-06-12 13:22:27 -04:00 committed by GitHub
parent 3aa4ff9d56
commit b1500ad031
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 15 deletions

View File

@ -41,7 +41,13 @@
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true,
"outputHashing": "none"
"outputHashing": "none",
"fileReplacements": [
{
"replace": "apps/nifi/src/environments/environment.ts",
"with": "apps/nifi/src/environments/environment.development.ts"
}
]
}
},
"defaultConfiguration": "production"

View File

@ -23,7 +23,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { StoreModule } from '@ngrx/store';
import { EffectsModule } from '@ngrx/effects';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { environment } from './environments/environment';
import { environment } from '../environments/environment';
import { HttpClientModule, HttpClientXsrfModule, provideHttpClient, withInterceptors } from '@angular/common/http';
import { NavigationActionTiming, RouterState, StoreRouterConnectingModule } from '@ngrx/router-store';
import { rootReducers } from './state';

View File

@ -15,19 +15,6 @@
* limitations under the License.
*/
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.