feat: add global proxy config upgrade: upgrade front(angular) to 19 chore: deployment staff 1. Dockerfile: build frontend, backend, and run in nginx base image
20 lines
634 B
TypeScript
20 lines
634 B
TypeScript
import {ApplicationConfig} from '@angular/core';
|
|
import {provideRouter} from '@angular/router';
|
|
|
|
import {routes} from './app.routes';
|
|
import {alerterInterceptor} from "./interceptor/alerter.interceptor";
|
|
import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from "@angular/common/http";
|
|
import {provideAnimations} from "@angular/platform-browser/animations";
|
|
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideRouter(routes),
|
|
provideHttpClient(withInterceptorsFromDi()), {
|
|
provide: HTTP_INTERCEPTORS, useClass: alerterInterceptor, multi: true
|
|
},
|
|
provideAnimations(),
|
|
]
|
|
};
|
|
|