@salesforce/retail-react-app 1.0.0 → 1.1.0-dev.0
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.
- package/CHANGELOG.md +1 -0
- package/app/ssr.js +6 -6
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/app/ssr.js
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
8
8
|
'use strict'
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
import path from 'path'
|
|
11
|
+
import {getRuntime} from '@salesforce/pwa-kit-runtime/ssr/server/express'
|
|
12
|
+
import {isRemote} from '@salesforce/pwa-kit-runtime/utils/ssr-server'
|
|
13
|
+
import {getConfig} from '@salesforce/pwa-kit-runtime/utils/ssr-config'
|
|
14
|
+
import helmet from 'helmet'
|
|
15
15
|
|
|
16
16
|
const options = {
|
|
17
17
|
// The build directory (an absolute path)
|
|
@@ -67,4 +67,4 @@ const {handler} = runtime.createHandler(options, (app) => {
|
|
|
67
67
|
})
|
|
68
68
|
// SSR requires that we export a single handler function called 'get', that
|
|
69
69
|
// supports AWS use of the server that we created above.
|
|
70
|
-
|
|
70
|
+
export const get = handler
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/retail-react-app",
|
|
3
|
-
"version": "1.0.0",
|
|
3
|
+
"version": "1.1.0-dev.0",
|
|
4
4
|
"license": "See license in LICENSE",
|
|
5
5
|
"author": "cc-pwa-kit@salesforce.com",
|
|
6
6
|
"ccExtensibility": {
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@lhci/cli": "^0.11.0",
|
|
46
46
|
"@loadable/component": "^5.15.3",
|
|
47
47
|
"@peculiar/webcrypto": "^1.4.2",
|
|
48
|
-
"@salesforce/commerce-sdk-react": "1.0.0",
|
|
49
|
-
"@salesforce/pwa-kit-dev": "3.0.0",
|
|
50
|
-
"@salesforce/pwa-kit-react-sdk": "3.0.0",
|
|
51
|
-
"@salesforce/pwa-kit-runtime": "3.0.0",
|
|
48
|
+
"@salesforce/commerce-sdk-react": "1.1.0-dev.0",
|
|
49
|
+
"@salesforce/pwa-kit-dev": "3.1.0-preview.0",
|
|
50
|
+
"@salesforce/pwa-kit-react-sdk": "3.1.0-preview.0",
|
|
51
|
+
"@salesforce/pwa-kit-runtime": "3.1.0-preview.0",
|
|
52
52
|
"@tanstack/react-query": "^4.28.0",
|
|
53
53
|
"@tanstack/react-query-devtools": "^4.29.1",
|
|
54
54
|
"@testing-library/dom": "^9.0.1",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"overrides": {
|
|
104
104
|
"nwsapi": "2.2.2"
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "c49c3738908cbcc24b40f2f160661439b84d47d5"
|
|
107
107
|
}
|