14 lines
455 B
TypeScript
14 lines
455 B
TypeScript
import { mergeApplicationConfig, ApplicationConfig } from '@angular/core';
|
|
import { provideServerRendering } from '@angular/platform-server';
|
|
import { appConfig } from './app.config';
|
|
import { provideHttpClient, withFetch } from '@angular/common/http';
|
|
|
|
const serverConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideServerRendering(),
|
|
provideHttpClient(withFetch())
|
|
]
|
|
};
|
|
|
|
export const config = mergeApplicationConfig(appConfig, serverConfig);
|