chore(config): add /ws path suffix to WebSocket URLs
Update WebSocket base URLs across environment examples and default config to include the required `/ws` path suffix that the backend WebSocket endpoint expects. Applies to development, test/local, and production environments.
This commit is contained in:
@@ -8,8 +8,9 @@ NEXTAUTH_URL_INTERNAL=http://localhost:3000
|
||||
# 后端 API 基础 URL(生产环境)
|
||||
NEXT_PUBLIC_API_BASE_URL=https://api.cozsweet.com
|
||||
|
||||
# WebSocket URL(生产环境,可选)
|
||||
NEXT_PUBLIC_WS_BASE_URL=wss://api.cozsweet.com
|
||||
# WebSocket URL(生产环境)
|
||||
NEXT_PUBLIC_WS_BASE_URL=wss://api.cozsweet.com/ws
|
||||
|
||||
|
||||
# API 超时时间(毫秒)
|
||||
NEXT_PUBLIC_API_CONNECT_TIMEOUT=30000
|
||||
|
||||
Reference in New Issue
Block a user