create-sitecore-jss 22.6.0-canary.2 → 22.6.0-canary.3

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.
@@ -7,9 +7,6 @@ SITECORE_EDGE_CONTEXT_ID=
7
7
 
8
8
  # ========== XM Cloud Proxy ===========
9
9
 
10
- # Your XM Cloud Proxy hostname is needed to build the app and execute the client-side requests against the proxy server.
11
- PROXY_HOST=http://localhost:3000
12
-
13
10
  # Your XM Cloud Proxy server path is needed to build the app. The build output will be copied to the proxy server path.
14
11
  # Use a relative unix style path to ensure compatibility when deployment runs on Windows or Unix based systems.
15
12
  PROXY_BUILD_PATH=<%- locals.relativeProxyAppDestination.replace(/\\/g, '\/') %>dist
@@ -77,7 +77,6 @@ The following environment variables can be used to configure the angular app. Yo
77
77
 
78
78
  | Parameter | Description |
79
79
  | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
80
- | `PROXY_HOST` | Your XM Cloud Proxy hostname is needed to build the app and execute the client-side requests against the proxy server. Default value `http://localhost:3000` |
81
80
  | `PROXY_BUILD_PATH` | Your XM Cloud Proxy server path is needed to build the app. The build output will be copied to the XM Cloud Proxy application path. Default value `<xmcloud_proxy_path>\dist`.
82
81
  | `SITECORE_EDGE_CONTEXT_ID` | The Context ID, which covers many system configurations, is required for connecting to the XM Cloud back end. This is an XM Cloud system environment variable. When the application runs on the XM Cloud editing host, this value is always set to the preview Context ID. |
83
82
  | `SITECORE_API_KEY` | The API key for GRAPH_QL_ENDPOINT authentication. It should be used in combination with SITECORE_API_HOST for local development when connecting to a local XM Cloud instance
@@ -12,7 +12,6 @@ class XMCloudPlugin implements ConfigPlugin {
12
12
 
13
13
  async exec(config: JssConfig) {
14
14
  const proxyBuildPath = process.env[`${constantCase('proxyBuildPath')}`]?.replace(/\/$/, '');
15
- const proxyHost = process.env[`${constantCase('proxyHost')}`];
16
15
 
17
16
  const sitecoreEdgeUrl =
18
17
  process.env[`${constantCase('sitecoreEdgeUrl')}`]?.replace(/\/$/, '') ||
@@ -30,7 +29,6 @@ class XMCloudPlugin implements ConfigPlugin {
30
29
 
31
30
  return Object.assign({}, config, {
32
31
  proxyBuildPath,
33
- proxyHost,
34
32
  sitecoreEdgeUrl,
35
33
  sitecoreEdgeContextId,
36
34
  personalizeScope,
@@ -11,7 +11,6 @@ export interface JssConfig extends Record<string, string | boolean | undefined>
11
11
  graphQLEndpointPath?: string;
12
12
  defaultServerRoute?: string;
13
13
  proxyBuildPath?: string;
14
- proxyHost?: string;
15
14
  sitecoreEdgeUrl?: string;
16
15
  sitecoreEdgeContextId?: string;
17
16
  }
@@ -17,15 +17,11 @@ export const getGraphQLClientFactoryConfig = () => {
17
17
  const isProduction = env.production === 'true';
18
18
 
19
19
  if (isProduction) {
20
- if (!env.proxyHost) {
21
- throw new Error('Please configure your proxyHost.');
22
- }
23
-
24
20
  if (env.sitecoreEdgeContextId) {
25
21
  clientConfig = {
26
22
  endpoint: isServer
27
23
  ? getEdgeProxyContentUrl(env.sitecoreEdgeContextId, env.sitecoreEdgeUrl)
28
- : getEdgeProxyContentUrl(env.sitecoreEdgeContextId, env.proxyHost),
24
+ : getEdgeProxyContentUrl(env.sitecoreEdgeContextId, ''),
29
25
  };
30
26
  } else if (env.graphQLEndpoint && env.sitecoreApiKey) {
31
27
  // we ignore ssr-proxy and query CM directly in case apiKey is used (i.e. in dev docker deployments)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sitecore-jss",
3
- "version": "22.6.0-canary.2",
3
+ "version": "22.6.0-canary.3",
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": "0e838937f67ad003a2a7bf52fba9e1f686095715"
68
+ "gitHead": "2d3cad0e4860e082edc20a069d6644135793d1f8"
69
69
  }