@hazejs/core 0.1.1 → 0.1.2

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/dist/index.d.mts CHANGED
@@ -1803,7 +1803,7 @@ interface AppConfig {
1803
1803
  requestIdHeader: string | false;
1804
1804
  /** 多应用:`{ admin: { prefix: '/admin' }, api: { domain: 'api.example.com' } }`,目录为 app/<name>/ */
1805
1805
  apps?: Record<string, SubAppConfig>;
1806
- /** 应用的外部访问地址(APP_URL),用于生成绝对链接(如存储的签名临时链接) */
1806
+ /** 应用的外部访问地址,默认读取 APP_URL;用于生成绝对链接(如存储的签名临时链接) */
1807
1807
  url?: string;
1808
1808
  /** 应用密钥(默认读取 APP_KEY):签名 Cookie、加密 Session、JWT 默认密钥 */
1809
1809
  key?: string;
package/dist/index.mjs CHANGED
@@ -1085,6 +1085,7 @@ function defaultConfig(mode) {
1085
1085
  app: {
1086
1086
  name: "hazejs",
1087
1087
  mode,
1088
+ url: process.env.APP_URL || void 0,
1088
1089
  debug: mode === "development",
1089
1090
  requestIdHeader: "x-request-id",
1090
1091
  bodyLimit: "1mb",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hazejs/core",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "description": "The hazejs runtime: IoC container, routing, middleware, auth, cache, queues, events, WebSocket, storage and mail on top of h3",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/penna-org/haze/tree/main/packages/core#readme",