From e4efc6722283d77228cfcb096bb40a482daeb79e Mon Sep 17 00:00:00 2001 From: PhilippMDoerner Date: Sun, 12 Jan 2025 17:55:09 +0100 Subject: [PATCH] docs: Adjust lines of server.ts example in server-side-rendering docs (#59490) docs: Adjust lines of server.ts example in ssr docs The server.ts excerpt used in the server-side-rendering docs (https://angular.dev/guide/ssr#configure-server-side-rendering) does not fully encapsulate the commonEngine code-block. It begins too early in line 31, leading to the inclusions of lines from another codeblock that is not intended to be shown here: ``` ); // All regular routes use the Angular engine ``` It should be beginning with the line `// All regular routes use the Angular engine`. It also ends too soon, cutting off these parts of the code-block: ``` .catch((err) => next(err)); }); ``` PR Close #59490 --- adev/src/content/guide/ssr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adev/src/content/guide/ssr.md b/adev/src/content/guide/ssr.md index 9f2f711b0e4..d093f0dded3 100644 --- a/adev/src/content/guide/ssr.md +++ b/adev/src/content/guide/ssr.md @@ -45,7 +45,7 @@ Note: In Angular v17 and later, `server.ts` is no longer used by `ng serve`. The The `server.ts` file configures a Node.js Express server and Angular server-side rendering. `CommonEngine` is used to render an Angular application. - + Angular CLI will scaffold an initial server implementation focused on server-side rendering your Angular application. This server can be extended to support other features such as API routes, redirects, static assets, and more. See [Express documentation](https://expressjs.com/) for more details.