Skip to content

Commit

Permalink
NIFI-13391: (apache#8960)
Browse files Browse the repository at this point in the history
- Setting up different environment files to configure ngrx store.
  • Loading branch information
mcgilman authored Jun 12, 2024
1 parent 3aa4ff9 commit b1500ad
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
8 changes: 7 additions & 1 deletion nifi-frontend/src/main/frontend/apps/nifi/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit b1500ad

Please sign in to comment.