@ossy/platform 1.15.3 → 1.15.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/server.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/platform",
3
- "version": "1.15.3",
3
+ "version": "1.15.4",
4
4
  "description": "Ossy application server runtime",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,8 +22,8 @@
22
22
  "author": "Ossy <yourfriends@ossy.se> (https://ossy.se)",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@ossy/router": "^1.16.3",
26
- "@ossy/sdk": "^1.16.3",
25
+ "@ossy/router": "^1.16.4",
26
+ "@ossy/sdk": "^1.16.4",
27
27
  "cookie-parser": "^1.4.7",
28
28
  "dotenv": ">=16.0.0 <17.0.0",
29
29
  "express": ">=5.0.0 <6.0.0",
@@ -32,5 +32,5 @@
32
32
  "files": [
33
33
  "src"
34
34
  ],
35
- "gitHead": "57ef30cf0b510dfb09b5b964cff3d847b9825360"
35
+ "gitHead": "982c7c2c2dfeeb043b5ccc4d71118a026a86fc3d"
36
36
  }
package/src/server.js CHANGED
@@ -155,14 +155,14 @@ export async function startServer (options = {}) {
155
155
  }
156
156
  const props = {
157
157
  ...config,
158
- theme: cloneSerializable(config?.theme),
158
+ ...(req.userAppSettings || {}),
159
+ theme: req.userAppSettings?.theme || cloneSerializable(config?.theme),
159
160
  themes: cloneSerializable(config?.themes),
160
161
  resourceTemplates: cloneSerializable(config?.resourceTemplates),
161
162
  url: requestUrl,
162
163
  isAuthenticated: !!req.isAuthenticated,
163
164
  pages: manifest.pages.map((page) => ({ id: page.id, path: page.path })),
164
165
  pageId: pageRoute.id,
165
- sidebarPrimaryCollapsed: false,
166
166
  }
167
167
  const html = await mod.render(props)
168
168
  res.status(200).type('html').send(html)