@nocobase/server 1.5.0-beta.20 → 1.5.0-beta.21

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.
@@ -205,7 +205,14 @@ const _Gateway = class _Gateway extends import_events.EventEmitter {
205
205
  rewrites: [{ source: "/**", destination: "/index.html" }]
206
206
  });
207
207
  }
208
- const handleApp = await this.getRequestHandleAppName(req);
208
+ let handleApp = "main";
209
+ try {
210
+ handleApp = await this.getRequestHandleAppName(req);
211
+ } catch (error) {
212
+ console.log(error);
213
+ this.responseErrorWithCode("APP_INITIALIZING", res, { appName: handleApp });
214
+ return;
215
+ }
209
216
  const hasApp = import_app_supervisor.AppSupervisor.getInstance().hasApp(handleApp);
210
217
  if (!hasApp) {
211
218
  void import_app_supervisor.AppSupervisor.getInstance().bootStrapApp(handleApp);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/server",
3
- "version": "1.5.0-beta.20",
3
+ "version": "1.5.0-beta.21",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "AGPL-3.0",
@@ -10,19 +10,19 @@
10
10
  "@koa/cors": "^3.1.0",
11
11
  "@koa/multer": "^3.0.2",
12
12
  "@koa/router": "^9.4.0",
13
- "@nocobase/acl": "1.5.0-beta.20",
14
- "@nocobase/actions": "1.5.0-beta.20",
15
- "@nocobase/auth": "1.5.0-beta.20",
16
- "@nocobase/cache": "1.5.0-beta.20",
17
- "@nocobase/data-source-manager": "1.5.0-beta.20",
18
- "@nocobase/database": "1.5.0-beta.20",
19
- "@nocobase/evaluators": "1.5.0-beta.20",
20
- "@nocobase/lock-manager": "1.5.0-beta.20",
21
- "@nocobase/logger": "1.5.0-beta.20",
22
- "@nocobase/resourcer": "1.5.0-beta.20",
23
- "@nocobase/sdk": "1.5.0-beta.20",
24
- "@nocobase/telemetry": "1.5.0-beta.20",
25
- "@nocobase/utils": "1.5.0-beta.20",
13
+ "@nocobase/acl": "1.5.0-beta.21",
14
+ "@nocobase/actions": "1.5.0-beta.21",
15
+ "@nocobase/auth": "1.5.0-beta.21",
16
+ "@nocobase/cache": "1.5.0-beta.21",
17
+ "@nocobase/data-source-manager": "1.5.0-beta.21",
18
+ "@nocobase/database": "1.5.0-beta.21",
19
+ "@nocobase/evaluators": "1.5.0-beta.21",
20
+ "@nocobase/lock-manager": "1.5.0-beta.21",
21
+ "@nocobase/logger": "1.5.0-beta.21",
22
+ "@nocobase/resourcer": "1.5.0-beta.21",
23
+ "@nocobase/sdk": "1.5.0-beta.21",
24
+ "@nocobase/telemetry": "1.5.0-beta.21",
25
+ "@nocobase/utils": "1.5.0-beta.21",
26
26
  "@types/decompress": "4.2.7",
27
27
  "@types/ini": "^1.3.31",
28
28
  "@types/koa-send": "^4.1.3",
@@ -56,5 +56,5 @@
56
56
  "@types/serve-handler": "^6.1.1",
57
57
  "@types/ws": "^8.5.5"
58
58
  },
59
- "gitHead": "211221dfc5014bf44543a080b56c3337396940ec"
59
+ "gitHead": "6a2c545d9e5e4f073592c810e704e6b0fe9aa096"
60
60
  }