Skip to content

Let's use AI to Earn!

fix: channel auth

Sakura095db1ef7fb6
diff --git a/project/aitoearn-backend/apps/aitoearn-ai/config/config.js b/project/aitoearn-backend/apps/aitoearn-ai/config/config.js
index 31fbadb1..e89783e1 100644
--- a/project/aitoearn-backend/apps/aitoearn-ai/config/config.js
+++ b/project/aitoearn-backend/apps/aitoearn-ai/config/config.js
@@ -63,7 +63,7 @@ module.exports = {
console: {
enable: true,
level: 'debug',
- pretty: false,
+ pretty: true,
},
},
redis: {
diff --git a/project/aitoearn-backend/apps/aitoearn-server/config/config.js b/project/aitoearn-backend/apps/aitoearn-server/config/config.js
index d5030201..26c972ed 100644
--- a/project/aitoearn-backend/apps/aitoearn-server/config/config.js
+++ b/project/aitoearn-backend/apps/aitoearn-server/config/config.js
@@ -97,7 +97,7 @@ module.exports = {
console: {
enable: true,
level: 'debug',
- pretty: false,
+ pretty: true,
},
},
@@ -288,11 +288,13 @@ module.exports = {
},
// 中转服务(可选)
- ...(RELAY_SERVER_URL && {
- relay: {
- serverUrl: RELAY_SERVER_URL,
- apiKey: RELAY_API_KEY,
- callbackUrl: RELAY_CALLBACK_URL,
- },
- }),
+ ...(RELAY_SERVER_URL && RELAY_API_KEY
+ ? {
+ relay: {
+ serverUrl: RELAY_SERVER_URL,
+ apiKey: RELAY_API_KEY,
+ callbackUrl: RELAY_CALLBACK_URL,
+ },
+ }
+ : {}),
}