@@ -189,26 +189,6 @@ export type ServerRoute =
189
189
| ServerRoutePrerenderWithParams
190
190
| ServerRouteServer ;
191
191
192
- /**
193
- * Configuration options for server routes.
194
- *
195
- * This interface defines the optional settings available for configuring server routes
196
- * in the server-side environment, such as specifying a path to the app shell route.
197
- *
198
- *
199
- * @see {@link provideServerRouting }
200
- * @deprecated use `provideServerRouting`. This will be removed in version 20.
201
- */
202
-
203
- export interface ServerRoutesConfigOptions {
204
- /**
205
- * Defines the route to be used as the app shell, which serves as the main entry
206
- * point for the application. This route is often used to enable server-side rendering
207
- * of the application shell for requests that do not match any specific server route.
208
- */
209
- appShellRoute ?: string ;
210
- }
211
-
212
192
/**
213
193
* Configuration value for server routes configuration.
214
194
* @internal
@@ -229,40 +209,6 @@ export interface ServerRoutesConfig {
229
209
*/
230
210
export const SERVER_ROUTES_CONFIG = new InjectionToken < ServerRoutesConfig > ( 'SERVER_ROUTES_CONFIG' ) ;
231
211
232
- /**
233
- * Sets up the necessary providers for configuring server routes.
234
- * This function accepts an array of server routes and optional configuration
235
- * options, returning an `EnvironmentProviders` object that encapsulates
236
- * the server routes and configuration settings.
237
- *
238
- * @param routes - An array of server routes to be provided.
239
- * @param options - (Optional) An object containing additional configuration options for server routes.
240
- * @returns An `EnvironmentProviders` instance with the server routes configuration.
241
- *
242
- * @see {@link ServerRoute }
243
- * @see {@link ServerRoutesConfigOptions }
244
- * @see {@link provideServerRouting }
245
- * @deprecated use `provideServerRouting`. This will be removed in version 20.
246
- * @developerPreview
247
- */
248
- export function provideServerRoutesConfig (
249
- routes : ServerRoute [ ] ,
250
- options ?: ServerRoutesConfigOptions ,
251
- ) : EnvironmentProviders {
252
- if ( typeof ngServerMode === 'undefined' || ! ngServerMode ) {
253
- throw new Error (
254
- `The 'provideServerRoutesConfig' function should not be invoked within the browser portion of the application.` ,
255
- ) ;
256
- }
257
-
258
- return makeEnvironmentProviders ( [
259
- {
260
- provide : SERVER_ROUTES_CONFIG ,
261
- useValue : { routes, ...options } ,
262
- } ,
263
- ] ) ;
264
- }
265
-
266
212
/**
267
213
* Sets up the necessary providers for configuring server routes.
268
214
* This function accepts an array of server routes and optional configuration
0 commit comments