You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/public/content/docs/self-hosting/environment-variables.mdx
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,29 @@ Public API URL exposed to the browser. Used by the dashboard frontend and API se
129
129
API_URL=https://analytics.example.com/api
130
130
```
131
131
132
+
### API_URL_SSR
133
+
134
+
**Type**: `string`
135
+
**Required**: No
136
+
**Default**: Same as `API_URL`
137
+
138
+
Internal API URL used **only** for the dashboard's server-side rendering (SSR) requests. Set this when the dashboard server can't resolve or reach the public `API_URL` and needs an internal address instead — for example a Docker Compose service name or a Kubernetes cluster-internal address.
139
+
140
+
The browser always keeps using the public `API_URL`; only requests made from the dashboard server during SSR use `API_URL_SSR`. If unset, SSR falls back to `API_URL`.
141
+
142
+
**Example**:
143
+
```bash
144
+
# Docker Compose: reach the API service directly over the internal network
This only affects the dashboard's server-side requests. It does not change the API service itself, CORS, or any browser-facing URLs — those still use `API_URL`.
0 commit comments