From b0d19eb4be3561d7bcec8e09b25017afc02bdb59 Mon Sep 17 00:00:00 2001 From: Krzysztof Platis Date: Wed, 5 Feb 2025 16:53:49 +0100 Subject: [PATCH] doc(modernizing ng17 app): move the migration step about "outputPath" to section "only for SSR" (#19960) As noted in this review comment , the migration step about "outputPath" is applicable only for SSR. related to https://jira.tools.sap/browse/CXSPA-9217 --- ...rnize-apps-migrated-from-6.8-to-2211.19.md | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/docs/migration/2211_35/modernize-apps-migrated-from-6.8-to-2211.19.md b/docs/migration/2211_35/modernize-apps-migrated-from-6.8-to-2211.19.md index ee8eaddc2d2..e9aa41e1726 100644 --- a/docs/migration/2211_35/modernize-apps-migrated-from-6.8-to-2211.19.md +++ b/docs/migration/2211_35/modernize-apps-migrated-from-6.8-to-2211.19.md @@ -31,17 +31,7 @@ Why: we're configuring here the new `application` builder for Angular v17 and la 1. In the section `architect > build > options` please apply the all the following modifications, to adapt to the new configuration format for the new builder: -2.1 In the property `"outputPath"` please remove the ending `"/browser"` from the string value. - -```diff - "architect": { - "build": { - "options": { -- "outputPath": "dist/YOUR-APP-NAME/browser", -+ "outputPath": "dist/YOUR-APP-NAME", -``` - -2.2 rename the property `"main"` to `"browser"` +2.1 rename the property `"main"` to `"browser"` ```diff "architect": { @@ -52,7 +42,7 @@ Why: we're configuring here the new `application` builder for Angular v17 and la ``` -2.3. In the section `architect > build > configurations > development` please remove 3 properties: `"buildOptimizer"`, `"vendorChunk"`, `"namedChunks"` +2.2. In the section `architect > build > configurations > development` please remove 3 properties: `"buildOptimizer"`, `"vendorChunk"`, `"namedChunks"` ```diff "architect": { @@ -85,7 +75,19 @@ In the `"compilerOptions"` section, please: ### `angular.json` -1. In the section `architect > build > options` please add 3 new options with values: `"server": "src/main.server.ts"`, `"prerender": false`, `"ssr": { "entry": "server.ts" }` +1. In the section `architect > build > options` please apply all the following modifications: + +1.1 In the property `"outputPath"` please remove the ending `"/browser"` from the string value. + +```diff + "architect": { + "build": { + "options": { +- "outputPath": "dist/YOUR-APP-NAME/browser", ++ "outputPath": "dist/YOUR-APP-NAME", +``` + +1.2 Please add 3 new options with values: `"server": "src/main.server.ts"`, `"prerender": false`, `"ssr": { "entry": "server.ts" }` ```diff "architect": {