@fecommunity/reactpress-server 1.0.0-beta.6 → 1.0.0-beta.7
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/bin/reactpress-server.js +1 -6
- package/package.json +1 -1
package/bin/reactpress-server.js
CHANGED
|
@@ -45,11 +45,7 @@ program
|
|
|
45
45
|
// 使用完整的基础配置模板,包含客户端和服务端配置
|
|
46
46
|
console.log(chalk.cyan('📋 Creating configuration file with essential settings...\n'));
|
|
47
47
|
|
|
48
|
-
//
|
|
49
|
-
const jwtSecret = require('crypto').randomBytes(32).toString('hex');
|
|
50
|
-
console.log(chalk.green('🔐 Generated JWT secret'));
|
|
51
|
-
|
|
52
|
-
// 创建.env文件 - 包含所有基础配置
|
|
48
|
+
// 创建.env文件 - 包含所有基础配置(不包含JWT_SECRET)
|
|
53
49
|
const envContent = `# Database Config
|
|
54
50
|
DB_HOST=127.0.0.1
|
|
55
51
|
DB_PORT=3306
|
|
@@ -57,7 +53,6 @@ DB_USER=reactpress
|
|
|
57
53
|
DB_PASSWD=reactpress
|
|
58
54
|
DB_DATABASE=reactpress
|
|
59
55
|
|
|
60
|
-
JWT_SECRET=${jwtSecret}
|
|
61
56
|
|
|
62
57
|
# Client Config
|
|
63
58
|
CLIENT_SITE_URL=http://localhost:3001
|