@abtnode/core 1.16.49-beta-20250823-082650-626c1473 → 1.16.49-beta-20250826-112154-8ca981fa
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/lib/router/index.js +9 -1
- package/package.json +24 -24
package/lib/router/index.js
CHANGED
|
@@ -311,7 +311,7 @@ Router.formatSites = (sites = []) => {
|
|
|
311
311
|
const rules = Array.isArray(site.rules) ? cloneDeep(site.rules) : [];
|
|
312
312
|
const grouped = {};
|
|
313
313
|
|
|
314
|
-
// 0. serve robots.txt/sitemap.xml from root and proxy to daemon
|
|
314
|
+
// 0. serve robots.txt/sitemap.xml and favicon.ico from root and proxy to daemon
|
|
315
315
|
if (isBlockletSite(site.domain) && !site.rules.find((x) => x.from.pathPrefix === '/robots.txt')) {
|
|
316
316
|
site.rules.push({
|
|
317
317
|
dynamic: true,
|
|
@@ -329,6 +329,14 @@ Router.formatSites = (sites = []) => {
|
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
+
if (isBlockletSite(site.domain) && !site.rules.find((x) => x.from.pathPrefix === '/favicon.ico')) {
|
|
333
|
+
site.rules.push({
|
|
334
|
+
dynamic: true,
|
|
335
|
+
from: { root: true, pathPrefix: '/', groupPathPrefix: '/', pathSuffix: '/favicon.ico' },
|
|
336
|
+
to: { type: ROUTING_RULE_TYPES.SERVICE, port: process.env.ABT_NODE_SERVICE_PORT, did: site.blockletDid },
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
|
|
332
340
|
// 1. serve blocklet.js for each component: both prefix and suffix do not contain trailing slash
|
|
333
341
|
rules.forEach((rule) => {
|
|
334
342
|
if ([ROUTING_RULE_TYPES.BLOCKLET].includes(rule.to.type) === false) {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.49-beta-
|
|
6
|
+
"version": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/analytics": "1.16.49-beta-
|
|
23
|
-
"@abtnode/auth": "1.16.49-beta-
|
|
24
|
-
"@abtnode/certificate-manager": "1.16.49-beta-
|
|
25
|
-
"@abtnode/constant": "1.16.49-beta-
|
|
26
|
-
"@abtnode/cron": "1.16.49-beta-
|
|
27
|
-
"@abtnode/db-cache": "1.16.49-beta-
|
|
28
|
-
"@abtnode/docker-utils": "1.16.49-beta-
|
|
29
|
-
"@abtnode/logger": "1.16.49-beta-
|
|
30
|
-
"@abtnode/models": "1.16.49-beta-
|
|
31
|
-
"@abtnode/queue": "1.16.49-beta-
|
|
32
|
-
"@abtnode/rbac": "1.16.49-beta-
|
|
33
|
-
"@abtnode/router-provider": "1.16.49-beta-
|
|
34
|
-
"@abtnode/static-server": "1.16.49-beta-
|
|
35
|
-
"@abtnode/timemachine": "1.16.49-beta-
|
|
36
|
-
"@abtnode/util": "1.16.49-beta-
|
|
22
|
+
"@abtnode/analytics": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
23
|
+
"@abtnode/auth": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
24
|
+
"@abtnode/certificate-manager": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
25
|
+
"@abtnode/constant": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
26
|
+
"@abtnode/cron": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
27
|
+
"@abtnode/db-cache": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
28
|
+
"@abtnode/docker-utils": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
29
|
+
"@abtnode/logger": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
30
|
+
"@abtnode/models": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
31
|
+
"@abtnode/queue": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
32
|
+
"@abtnode/rbac": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
33
|
+
"@abtnode/router-provider": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
34
|
+
"@abtnode/static-server": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
35
|
+
"@abtnode/timemachine": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
36
|
+
"@abtnode/util": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
37
37
|
"@aigne/aigne-hub": "^0.6.8",
|
|
38
38
|
"@arcblock/did": "1.22.2",
|
|
39
39
|
"@arcblock/did-connect-js": "1.22.2",
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
"@arcblock/pm2-events": "^0.0.5",
|
|
46
46
|
"@arcblock/validator": "1.22.2",
|
|
47
47
|
"@arcblock/vc": "1.22.2",
|
|
48
|
-
"@blocklet/constant": "1.16.49-beta-
|
|
48
|
+
"@blocklet/constant": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
49
49
|
"@blocklet/did-space-js": "^1.1.18",
|
|
50
|
-
"@blocklet/env": "1.16.49-beta-
|
|
50
|
+
"@blocklet/env": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
51
51
|
"@blocklet/error": "^0.2.5",
|
|
52
|
-
"@blocklet/meta": "1.16.49-beta-
|
|
53
|
-
"@blocklet/resolver": "1.16.49-beta-
|
|
54
|
-
"@blocklet/sdk": "1.16.49-beta-
|
|
55
|
-
"@blocklet/server-js": "1.16.49-beta-
|
|
56
|
-
"@blocklet/store": "1.16.49-beta-
|
|
52
|
+
"@blocklet/meta": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
53
|
+
"@blocklet/resolver": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
54
|
+
"@blocklet/sdk": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
55
|
+
"@blocklet/server-js": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
56
|
+
"@blocklet/store": "1.16.49-beta-20250826-112154-8ca981fa",
|
|
57
57
|
"@blocklet/theme": "^3.1.27",
|
|
58
58
|
"@fidm/x509": "^1.2.1",
|
|
59
59
|
"@ocap/mcrypto": "1.22.2",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"jest": "^29.7.0",
|
|
119
119
|
"unzipper": "^0.10.11"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "f31434546e024c4ce20a1d3c0d34b64f12980536"
|
|
122
122
|
}
|