Skip to content

Commit b0d19eb

Browse files
authored
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
1 parent 98606c7 commit b0d19eb

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

Diff for: docs/migration/2211_35/modernize-apps-migrated-from-6.8-to-2211.19.md

+15-13
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,7 @@ Why: we're configuring here the new `application` builder for Angular v17 and la
3131

3232
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:
3333

34-
2.1 In the property `"outputPath"` please remove the ending `"/browser"` from the string value.
35-
36-
```diff
37-
"architect": {
38-
"build": {
39-
"options": {
40-
- "outputPath": "dist/YOUR-APP-NAME/browser",
41-
+ "outputPath": "dist/YOUR-APP-NAME",
42-
```
43-
44-
2.2 rename the property `"main"` to `"browser"`
34+
2.1 rename the property `"main"` to `"browser"`
4535

4636
```diff
4737
"architect": {
@@ -52,7 +42,7 @@ Why: we're configuring here the new `application` builder for Angular v17 and la
5242
```
5343

5444

55-
2.3. In the section `architect > build > configurations > development` please remove 3 properties: `"buildOptimizer"`, `"vendorChunk"`, `"namedChunks"`
45+
2.2. In the section `architect > build > configurations > development` please remove 3 properties: `"buildOptimizer"`, `"vendorChunk"`, `"namedChunks"`
5646

5747
```diff
5848
"architect": {
@@ -85,7 +75,19 @@ In the `"compilerOptions"` section, please:
8575

8676
### `angular.json`
8777

88-
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" }`
78+
1. In the section `architect > build > options` please apply all the following modifications:
79+
80+
1.1 In the property `"outputPath"` please remove the ending `"/browser"` from the string value.
81+
82+
```diff
83+
"architect": {
84+
"build": {
85+
"options": {
86+
- "outputPath": "dist/YOUR-APP-NAME/browser",
87+
+ "outputPath": "dist/YOUR-APP-NAME",
88+
```
89+
90+
1.2 Please add 3 new options with values: `"server": "src/main.server.ts"`, `"prerender": false`, `"ssr": { "entry": "server.ts" }`
8991

9092
```diff
9193
"architect": {

0 commit comments

Comments
 (0)