fix bug
This commit is contained in:
@@ -13,17 +13,17 @@ const getWebsiteUrls = () => {
|
||||
if (typeof window !== 'undefined') {
|
||||
// 在客户端,使用Vite注入的环境变量
|
||||
return {
|
||||
claude: import.meta.env.CLAUDE_TARGET_URL || 'https://chat.micar9.com:8443',
|
||||
claude: import.meta.env.CLAUDE_TARGET_URL || 'https://chat.micar9.com',
|
||||
chatgpt: import.meta.env.CHATGPT_TARGET_URL || 'https://chat.openai.com',
|
||||
grok: import.meta.env.GROK_TARGET_URL || 'https://grok-mirror.micar9.com:8443'
|
||||
grok: import.meta.env.GROK_TARGET_URL || 'https://grok-mirror.micar9.com'
|
||||
}
|
||||
}
|
||||
|
||||
// 在服务端,使用环境变量
|
||||
return {
|
||||
claude: process.env.CLAUDE_TARGET_URL || 'https://chat.micar9.com:8443',
|
||||
claude: process.env.CLAUDE_TARGET_URL || 'https://chat.micar9.com',
|
||||
chatgpt: process.env.CHATGPT_TARGET_URL || 'https://chat.openai.com',
|
||||
grok: process.env.GROK_TARGET_URL || 'https://grok-mirror.micar9.com:8443'
|
||||
grok: process.env.GROK_TARGET_URL || 'https://grok-mirror.micar9.com'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user