@fecommunity/reactpress-server 1.0.0-beta.4 → 1.0.0-beta.5

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.
@@ -42,38 +42,21 @@ program
42
42
  }
43
43
  }
44
44
 
45
- // 使用基础配置模板,基于根目录的.env文件
46
- console.log(chalk.cyan('📋 Creating configuration file based on default template...\n'));
45
+ // 使用最小化配置模板,只包含数据库基础配置
46
+ console.log(chalk.cyan('📋 Creating minimal configuration file...\n'));
47
47
 
48
48
  // 生成JWT密钥
49
49
  const jwtSecret = require('crypto').randomBytes(32).toString('hex');
50
50
  console.log(chalk.green('🔐 Generated JWT secret'));
51
51
 
52
- // 创建.env文件 - 基于根目录模板
53
- const envContent = `# Database Config
54
- DB_HOST=127.0.0.1
52
+ // 创建.env文件 - 最小化配置
53
+ const envContent = `DB_HOST=127.0.0.1
55
54
  DB_PORT=3306
56
55
  DB_USER=reactpress
57
56
  DB_PASSWD=reactpress
58
57
  DB_DATABASE=reactpress
59
58
 
60
- # JWT Secret
61
59
  JWT_SECRET=${jwtSecret}
62
-
63
- # Client Config
64
- CLIENT_SITE_URL=http://localhost:3001
65
-
66
- # Server Config
67
- SERVER_SITE_URL=http://localhost:${options.port}
68
- SERVER_PORT=${options.port}
69
- SERVER_API_PREFIX=/api
70
-
71
- # Admin Config
72
- ADMIN_USER=admin
73
- ADMIN_PASSWD=admin
74
-
75
- # Environment
76
- NODE_ENV=development
77
60
  `;
78
61
 
79
62
  fs.writeFileSync(envPath, envContent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecommunity/reactpress-server",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "ReactPress Server - NestJS-based backend API for ReactPress CMS",
5
5
  "author": "fecommunity",
6
6
  "license": "MIT",