mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 22:13:02 +00:00
39 lines
1.4 KiB
TypeScript
39 lines
1.4 KiB
TypeScript
// This file can be replaced during build by using the `fileReplacements` array.
|
|
// `ng build --configuration production` replaces `environment.ts` with `environment.production.ts`.
|
|
// `ng test --configuration test` replaces `environment.ts` with `environment.test.ts`.
|
|
// The list of file replacements can be found in `angular.json`.
|
|
|
|
import { BuildConfig } from '../config/build-config.interface';
|
|
|
|
export const environment: Partial<BuildConfig> = {
|
|
production: false,
|
|
|
|
// Angular SSR (Server Side Rendering) settings
|
|
ssr: {
|
|
enabled: false,
|
|
enablePerformanceProfiler: false,
|
|
inlineCriticalCss: false,
|
|
transferState: true,
|
|
replaceRestUrl: false,
|
|
excludePathRegexes: [
|
|
/^\/communities\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/browse(\/.*)?$/i,
|
|
/^\/collections\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/browse(\/.*)?$/i,
|
|
/^\/browse\//,
|
|
/^\/search$/,
|
|
/^\/community-list$/,
|
|
/^\/statistics$/,
|
|
],
|
|
enableSearchComponent: false,
|
|
enableBrowseComponent: 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/plugins/zone-error'; // Included with Angular CLI.
|