/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
adev/src/app/app.config.server.ts
22 строки
700 B
rudzikdawid
fix(docs-infra): increase SSR fetch limit to prevent 404 on page reload
17 июн 2026, 18:03
17 июн 2026, 18:03
02d6b43
Код
Авторство
О чём код?
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {mergeApplicationConfig, ApplicationConfig} from '@angular/core'; import {provideServerRendering, withRoutes, RenderMode} from '@angular/ssr'; import {appConfig} from './app.config'; const serverConfig: ApplicationConfig = { providers: [ provideServerRendering( {maxResponseBodySize: 2 * 1024 * 1024}, withRoutes([{path: '**', renderMode: RenderMode.Prerender}]), ), ], }; export const config: ApplicationConfig = mergeApplicationConfig(appConfig, serverConfig);