import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core'; import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; import { provideHttpClient, withInterceptors } from '@angular/common/http'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; import { authInterceptor } from './core/auth-interceptor'; import { provideApiConfiguration } from './api/api-configuration'; // The API's base URL. There's no server-side config to read it from at // runtime in this small base (a plain SPA build), so it's a build-time // constant; swap to Angular's fileReplacements if a later build needs a // different URL per environment. const API_BASE_URL = 'http://localhost:8080'; export const appConfig: ApplicationConfig = { providers: [ provideBrowserGlobalErrorListeners(), provideAnimationsAsync(), provideRouter(routes), provideHttpClient(withInterceptors([authInterceptor])), provideApiConfiguration(API_BASE_URL), ], };