Skip to content

Commit a9cdd01

Browse files
chore(root): Release 2025-06-23 11:44 (#8571)
2 parents ca155cc + c1c672e commit a9cdd01

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

apps/dashboard/src/config/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export const SEGMENT_KEY = import.meta.env.VITE_SEGMENT_KEY;
2424

2525
export const MIXPANEL_KEY = import.meta.env.VITE_MIXPANEL_KEY;
2626

27-
export const LEGACY_DASHBOARD_URL = import.meta.env.VITE_LEGACY_DASHBOARD_URL;
27+
export const LEGACY_DASHBOARD_URL =
28+
window._env_?.VITE_LEGACY_DASHBOARD_URL || import.meta.env.VITE_LEGACY_DASHBOARD_URL;
2829

2930
export const PLAIN_SUPPORT_CHAT_APP_ID = import.meta.env.VITE_PLAIN_SUPPORT_CHAT_APP_ID;
3031

docker/community/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ WS_PORT=3002
4848
# Root URL
4949
VITE_API_HOSTNAME=${HOST_NAME}:3000
5050
VITE_WEBSOCKET_HOSTNAME=${HOST_NAME}:3002
51+
# The VITE_LEGACY_DASHBOARD_URL must be set to the host and port of your web container.
5152
API_ROOT_URL=${HOST_NAME}:3000
5253
FRONT_BASE_URL=${HOST_NAME}:(4000|4200)
5354
IS_API_IDEMPOTENCY_ENABLED=false

docker/community/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ services:
168168
VITE_API_HOSTNAME: ${VITE_API_HOSTNAME}
169169
VITE_SELF_HOSTED: true
170170
VITE_WEBSOCKET_HOSTNAME: ${VITE_WEBSOCKET_HOSTNAME}
171+
VITE_LEGACY_DASHBOARD_URL: ${VITE_LEGACY_DASHBOARD_URL}
171172
ports:
172173
- 4000:4000
173174

0 commit comments

Comments
 (0)