qumra-engine 2.0.62 → 2.0.64
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.
|
@@ -18,6 +18,7 @@ const prepareDataMiddleware = (req, res, next) => {
|
|
|
18
18
|
//{ themeVersionId: req.session.themeId }
|
|
19
19
|
let themePath = "";
|
|
20
20
|
const params = new URLSearchParams();
|
|
21
|
+
console.log("🚀 ~ prepareDataMiddleware ~ req.session:", req.session);
|
|
21
22
|
if (req.session?.theme) {
|
|
22
23
|
params.set("theme", req.session.theme);
|
|
23
24
|
}
|
|
@@ -31,6 +32,7 @@ const prepareDataMiddleware = (req, res, next) => {
|
|
|
31
32
|
params.set("themeWidget", String(res.locals.themeWidget));
|
|
32
33
|
}
|
|
33
34
|
themePath = params.toString() ? `?${params.toString()}` : "";
|
|
35
|
+
console.log("🚀 ~ prepareDataMiddleware ~ themePath:", themePath);
|
|
34
36
|
let api = "";
|
|
35
37
|
if (res.locals.preview && res.locals.themeWidget) {
|
|
36
38
|
api = `https://store-gate.qumra.cloud/render/preview-widget${themePath}`;
|
package/dist/middleware.js
CHANGED
|
@@ -40,12 +40,11 @@ const startEngine = async ({ mode, getRender, setRender, port = 3000, themesRepo
|
|
|
40
40
|
saveUninitialized: false,
|
|
41
41
|
cookie: {
|
|
42
42
|
sameSite: 'none',
|
|
43
|
-
secure:
|
|
43
|
+
secure: true,
|
|
44
44
|
maxAge: 1000 * 60 * 5,
|
|
45
45
|
},
|
|
46
46
|
}));
|
|
47
47
|
app.use((req, res, next) => {
|
|
48
|
-
console.log("🚀 ~ startEngine ~ req.query.theme:", req.query.theme);
|
|
49
48
|
if (req.query.devMode) {
|
|
50
49
|
req.session.devMode = true;
|
|
51
50
|
}
|