You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
495 B
TypeScript
15 lines
495 B
TypeScript
|
2 weeks ago
|
import { mergeApplicationConfig, ApplicationConfig } from '@angular/core';
|
||
|
|
import { provideServerRendering } from '@angular/platform-server';
|
||
|
|
import { provideServerRouting } from '@angular/ssr';
|
||
|
|
import { appConfig } from './app.config';
|
||
|
|
import { serverRoutes } from './app.routes.server';
|
||
|
|
|
||
|
|
const serverConfig: ApplicationConfig = {
|
||
|
|
providers: [
|
||
|
|
provideServerRendering(),
|
||
|
|
provideServerRouting(serverRoutes)
|
||
|
|
]
|
||
|
|
};
|
||
|
|
|
||
|
|
export const config = mergeApplicationConfig(appConfig, serverConfig);
|