@ecomplus/storefront-renderer 2.10.8 → 2.10.10
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 +8 -0
- package/functions/index.js +4 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.10.10](https://github.com/ecomplus/storefront/compare/@ecomplus/storefront-renderer@2.10.9...@ecomplus/storefront-renderer@2.10.10) (2023-08-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @ecomplus/storefront-renderer
|
|
9
|
+
|
|
10
|
+
## [2.10.9](https://github.com/ecomplus/storefront/compare/@ecomplus/storefront-renderer@2.10.8...@ecomplus/storefront-renderer@2.10.9) (2023-05-31)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @ecomplus/storefront-renderer
|
|
13
|
+
|
|
6
14
|
## [2.10.8](https://github.com/ecomplus/storefront/compare/@ecomplus/storefront-renderer@2.10.7...@ecomplus/storefront-renderer@2.10.8) (2023-05-20)
|
|
7
15
|
|
|
8
16
|
### Bug Fixes
|
package/functions/index.js
CHANGED
|
@@ -62,7 +62,9 @@ exports.ssr = (req, res, getCacheControl) => {
|
|
|
62
62
|
delete headers[headerName]
|
|
63
63
|
}
|
|
64
64
|
})
|
|
65
|
-
|
|
65
|
+
if (process.env.STOREFRONT_PROXY_DEBUG) {
|
|
66
|
+
console.log({ proxy: proxyUrl.href })
|
|
67
|
+
}
|
|
66
68
|
try {
|
|
67
69
|
const response = await axios.get(proxyUrl.href, {
|
|
68
70
|
headers,
|
|
@@ -116,7 +118,7 @@ exports.ssr = (req, res, getCacheControl) => {
|
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
const fallback = () => {
|
|
119
|
-
if (url.startsWith('
|
|
121
|
+
if (url.startsWith('/~reverse-proxy/')) {
|
|
120
122
|
proxy()
|
|
121
123
|
} else if (url.slice(-1) === '/') {
|
|
122
124
|
redirect(url.slice(0, -1))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecomplus/storefront-renderer",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.10",
|
|
4
4
|
"description": "SSR for Storefront EJS views with E-Com Plus APIs",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@ecomplus/search-engine": "^2.6.1",
|
|
30
30
|
"@ecomplus/storefront-router": "^2.2.1",
|
|
31
31
|
"@ecomplus/utils": "^1.4.1",
|
|
32
|
-
"ejs": "^3.1.
|
|
32
|
+
"ejs": "^3.1.9",
|
|
33
33
|
"html-minifier": "^4.0.0",
|
|
34
34
|
"image-size": "^1.0.2",
|
|
35
35
|
"lodash": "^4.17.21",
|