openvidu/frontend/src/app/app.config.ts
2025-03-10 19:25:11 +01:00

24 lines
995 B
TypeScript

import { ApplicationConfig, importProvidersFrom, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { OpenViduComponentsModule, OpenViduComponentsConfig } from 'openvidu-components-angular';
import { environment } from '@environment/environment';
import { routes } from '@app/app.routes';
import { provideHttpClient, withInterceptors } from '@angular/common/http';
import { httpInterceptor } from 'projects/shared-meet-components/src/public-api';
const ovComponentsconfig: OpenViduComponentsConfig = {
production: environment.production
};
export const appConfig: ApplicationConfig = {
providers: [
importProvidersFrom(OpenViduComponentsModule.forRoot(ovComponentsconfig)),
provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes),
provideAnimationsAsync(),
provideHttpClient(withInterceptors([httpInterceptor]))
]
};