create-sitecore-jss 22.3.1-canary.3 → 22.3.1-canary.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ This Single Page Application (SPA) built with Angular is designed to be fully co
|
|
|
8
8
|
|
|
9
9
|
- `Context ID`: The Context ID environment variable simplifies setting up and configuring XM Cloud solutions. It's a unified identifier that maps to all your configured resources, such as content, sites, files, forms, and integration settings.
|
|
10
10
|
|
|
11
|
-
- `Pages
|
|
11
|
+
- `XM Cloud Pages editing integration`: full integration with Pages - the dynamic visual page editor of XM Cloud.
|
|
12
12
|
|
|
13
13
|
- `XM Cloud proxy personalization` with embedded personalization and A/B Component Test support.
|
|
14
14
|
|
|
@@ -43,13 +43,18 @@ The following environment variables can be set to configure the angular app. You
|
|
|
43
43
|
|
|
44
44
|
## Build & run
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
### Running the application in production mode
|
|
47
47
|
|
|
48
|
-
To run your app in production mode
|
|
48
|
+
To build and run in production mode you need to have your angular app side by side with the [Node XM CLoud proxy](https://github.com/Sitecore/jss/tree/dev/packages/create-sitecore-jss/src/templates/node-xmcloud-proxy). For additional information on how to set up and run SPA app in production mode against XM CLoud instance you can check the [spa-starters](https://github.com/sitecorelabs/xmcloud-foundation-head/tree/main/headapps/spa-starter) monoreopo readme.
|
|
49
49
|
|
|
50
|
-
1. Run `npm install`
|
|
50
|
+
1. Run `npm install` for both angular and proxy apps
|
|
51
|
+
2. Run `npm run build` in the angular app root; this will build the angular app and copy the the resulting `/dist` folder into the specified proxy app folder
|
|
52
|
+
3. Run `npm run start` in the proxy app root
|
|
53
|
+
|
|
54
|
+
### Running the application in connected mode
|
|
51
55
|
|
|
52
|
-
|
|
56
|
+
When building and running your app in connected mode the proxy application is not needed. However, please note that certain features, such as personalization, server-side rendering, and editing, will not be available.
|
|
53
57
|
|
|
54
|
-
|
|
55
|
-
|
|
58
|
+
1. Run `npm install`
|
|
59
|
+
2. Run `npm run build`
|
|
60
|
+
3. Run `npm run start:connected`
|
|
@@ -12,7 +12,7 @@ This is a sample setup showing one of how you can configure XM Cloud rendering s
|
|
|
12
12
|
|
|
13
13
|
- `Context ID`: The Context ID environment variable simplifies setting up and configuring XM Cloud solutions. It's a unified identifier that maps to all your configured resources, such as content, sites, files, forms, and integration settings.
|
|
14
14
|
|
|
15
|
-
- `Pages
|
|
15
|
+
- `XM Cloud Pages editing integration`: full integration with Pages - the dynamic visual page editor of XM Cloud.
|
|
16
16
|
|
|
17
17
|
- `XM Cloud proxy personalization` with embedded personalization and A/B Component Test support.
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-sitecore-jss",
|
|
3
|
-
"version": "22.3.1-canary.
|
|
3
|
+
"version": "22.3.1-canary.4",
|
|
4
4
|
"description": "Sitecore JSS initializer",
|
|
5
5
|
"bin": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"ts-node": "^10.9.1",
|
|
66
66
|
"typescript": "~5.6.3"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "4c9c7a3ab03d414ac94967374ec5825743de96b3"
|
|
69
69
|
}
|