fix(api): correct typo in comments regarding workspace API installation
This commit is contained in:
parent
6d6059330a
commit
a888157d33
@ -5,7 +5,7 @@ import { getAuthCookies, getWorkspaceContext } from "@/modules/auth/auth.actions
|
|||||||
* Returns an authenticated API client for server-side use (server actions, RSC).
|
* Returns an authenticated API client for server-side use (server actions, RSC).
|
||||||
*
|
*
|
||||||
* Server-side calls bypass the /api/proxy route — the server already has
|
* Server-side calls bypass the /api/proxy route — the server already has
|
||||||
* cookie access and can talk to the workspace's repareenew install directly.
|
* cookie access and can talk to the workspace's api install directly.
|
||||||
* Browser-side code should use the singleton `api` from @garage/api, which
|
* Browser-side code should use the singleton `api` from @garage/api, which
|
||||||
* defaults to baseUrl="/api/proxy" and gets workspace context from cookies
|
* defaults to baseUrl="/api/proxy" and gets workspace context from cookies
|
||||||
* via the proxy route.
|
* via the proxy route.
|
||||||
|
|||||||
@ -68,7 +68,7 @@ export type CreateApiOptions = ApiClientOptions & { baseUrl?: string }
|
|||||||
* the build-time NEXT_PUBLIC_API_URL never reaches the client.
|
* the build-time NEXT_PUBLIC_API_URL never reaches the client.
|
||||||
*
|
*
|
||||||
* Server-side callers (server actions, RSC) can opt out by passing
|
* Server-side callers (server actions, RSC) can opt out by passing
|
||||||
* `{ baseUrl: <absolute repareenew URL> }` from a cookie.
|
* `{ baseUrl: <absolute api URL> }` from a cookie.
|
||||||
*/
|
*/
|
||||||
const DEFAULT_BASE_URL = "/api/proxy"
|
const DEFAULT_BASE_URL = "/api/proxy"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user