import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core'; import {provideRouter} from '@angular/router'; import {routes} from './app.routes'; import {provideHttpClient, withFetch, withInterceptors} from '@angular/common/http'; import {BASE_PATH} from './api'; import {jwtInterceptor} from './interceptors/jwt.interceptor'; import {errorInterceptor} from './interceptors/error.interceptor'; import {environment} from '../environments/environment'; import {provideEcharts} from 'ngx-echarts'; export const appConfig: ApplicationConfig = { providers: [ provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes), provideHttpClient(withFetch(), withInterceptors([jwtInterceptor, errorInterceptor])), { provide: BASE_PATH, useValue: environment.apiUrl }, provideEcharts() ] };