befly 3.22.1 → 3.22.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.
@@ -56,7 +56,7 @@ export default {
56
56
  const savedFileName = extension ? `${fileKey}${extension}` : fileKey;
57
57
  const uploadDir = join(getAppPublicDir(befly.config?.publicDir || "./public"), categoryDir, monthDir);
58
58
  const relativeFilePath = `/public/${categoryDir}/${monthDir}/${savedFileName}`;
59
- const absoluteFileUrl = `${befly.config.staticHost}${relativeFilePath}`;
59
+ const absoluteFileUrl = `${befly.config.publicHost}${relativeFilePath}`;
60
60
  const isImage = fileType === "image" ? 1 : 0;
61
61
 
62
62
  mkdirSync(uploadDir, { recursive: true });
package/checks/config.js CHANGED
@@ -17,7 +17,7 @@ const configSchema = z
17
17
  appName: noTrimString,
18
18
  appPort: z.int().min(1).max(65535),
19
19
  appHost: noTrimString,
20
- staticHost: noTrimString,
20
+ publicHost: noTrimString,
21
21
  devEmail: z.union([z.literal(""), z.email()]),
22
22
  devPassword: z.string().min(6),
23
23
  bodyLimit: z.int().min(1),
@@ -9,7 +9,7 @@
9
9
  "uploadMaxSize": 20,
10
10
  "tz": "Asia/Shanghai",
11
11
  "publicDir": "./public",
12
- "staticHost": "http://127.0.0.1:3000",
12
+ "publicHost": "http://127.0.0.1:3000",
13
13
  "logger": {
14
14
  "debug": 1,
15
15
  "excludeFields": ["password", "token", "secret"],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "befly",
3
- "version": "3.22.1",
4
- "gitHead": "fdeb630232962a7f6d023d368f90fd9a91ea20a0",
3
+ "version": "3.22.2",
4
+ "gitHead": "89a9ea96f129aa223da7a627ec8e7fb572438292",
5
5
  "private": false,
6
6
  "description": "Befly - 为 Bun 专属打造的 JavaScript API 接口框架核心引擎",
7
7
  "keywords": [