mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-08 16:25:58 +08:00
Update content.json generation to leave appSpace empty if webapp doesn't exist
This commit is contained in:
parent
483127c4ef
commit
1be6b32fc3
@ -3,7 +3,7 @@
|
|||||||
## Purpose
|
## Purpose
|
||||||
These configuration files create **net-new, default** DigitalExperience content records (`sfdc_cms__site` type) for a Digital Experience React Site. They are not intended to edit or modify existing DigitalExperience content. Use these templates only when provisioning a brand-new React site.
|
These configuration files create **net-new, default** DigitalExperience content records (`sfdc_cms__site` type) for a Digital Experience React Site. They are not intended to edit or modify existing DigitalExperience content. Use these templates only when provisioning a brand-new React site.
|
||||||
|
|
||||||
The `appContainer: true` and `appSpace` fields in `content.json` are what make this a React site rather than a standard LWR site. The `appSpace` value follows the format `{namespace}__{developerName}` and must match a deployed `UIBundle` metadata record.
|
The `appContainer: true` field in `content.json` is what makes this a React site rather than a standard LWR site. The `appSpace` field should **be left empty if the WebApplication metadata record does not already exist**. When the WebApplication exists, populate the `appSpace` value following the format `{namespace}__{developerName}` to match the deployed `WebApplication` metadata record.
|
||||||
|
|
||||||
## File Location
|
## File Location
|
||||||
The DigitalExperience directory contains only `_meta.json` and `content.json`. Do not create any directories other than `sfdc_cms__site` inside the bundle.
|
The DigitalExperience directory contains only `_meta.json` and `content.json`. Do not create any directories other than `sfdc_cms__site` inside the bundle.
|
||||||
@ -32,7 +32,9 @@ digitalExperiences/site/{siteName}1/sfdc_cms__site/{siteName}1/content.json
|
|||||||
"contentBody": {
|
"contentBody": {
|
||||||
"authenticationType": "AUTHENTICATED_WITH_PUBLIC_ACCESS_ENABLED",
|
"authenticationType": "AUTHENTICATED_WITH_PUBLIC_ACCESS_ENABLED",
|
||||||
"appContainer": true,
|
"appContainer": true,
|
||||||
"appSpace": "{appNamespace}__{appDevName}"
|
"appSpace": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Note:** Leave `appSpace` empty (`""`) if the WebApplication does not exist. If the WebApplication metadata record is already deployed, populate it with `"{appNamespace}__{appDevName}"`.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user