Skip to content

Commit

Permalink
doc(modernizing ng17 app): move the migration step about "outputPath"…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
Platonn authored Feb 5, 2025
1 parent 98606c7 commit b0d19eb
Showing 1 changed file with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit b0d19eb

Please sign in to comment.