Override the base URL
Resolution happens in priority order:config.baseUrl— explicit, wins over everything.- Environment variables, with a
/v1suffix appended automatically if missing:API_BASE_URLVITE_API_BASE_URLNEXT_PUBLIC_API_BASE_URL
.env points at a local backend:
Request headers
Every request is sent with:Authorization: Bearer <token>—<token>is the current value of the cookie named byMindConfig.authCookieKey; the header is omitted when the cookie is absentX-Mind-SDK-Version: 1.0.0Accept: application/json(andContent-Type: application/jsonfor JSON bodies)
credentials: 'include').