environment.prod.ts
angular/comprehensive-demo/src/environments/environment.prod.ts
/**
* Environment Configuration - Production
*
* Production environment configuration with optimized settings.
* This file is used when building for production (ng build --configuration production).
*/
export const environment = {
production: true,
apiUrl: 'https://api.example.com/api',
appName: 'Angular Comprehensive Demo',
version: '1.0.0',
features: {
enableLogging: false,
enableAnalytics: true,
enableErrorReporting: true,
},
storage: {
localStoragePrefix: 'app_',
sessionStoragePrefix: 'session_',
cookiePrefix: 'app_',
indexedDBName: 'AngularDemoDB',
indexedDBVersion: 1,
},
auth: {
tokenKey: 'auth_token',
refreshTokenKey: 'refresh_token',
tokenExpirationTime: 3600,
},
};
Artículos relacionados
server.js
server.js — javascript source code from the angular learning materials (angular/comprehensive-demo/server/server.js).
Leer artículo →app.component.ts
app.component.ts — typescript source code from the angular learning materials (angular/comprehensive-demo/src/app/app.component.ts).
Leer artículo →app.config.ts
app.config.ts — typescript source code from the angular learning materials (angular/comprehensive-demo/src/app/app.config.ts).
Leer artículo →app.routes.ts
app.routes.ts — typescript source code from the angular learning materials (angular/comprehensive-demo/src/app/app.routes.ts).
Leer artículo →auth.guard.ts
auth.guard.ts — typescript source code from the angular learning materials (angular/comprehensive-demo/src/app/core/guards/auth.guard.ts).
Leer artículo →role.guard.ts
role.guard.ts — typescript source code from the angular learning materials (angular/comprehensive-demo/src/app/core/guards/role.guard.ts).
Leer artículo →