From bf748e4bfc43ff4adb820d3df1019bd55a5e0fd8 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Fri, 16 Oct 2026 10:15:40 +0000 Subject: [PATCH 1/2] docs(self-hosting): document API_ONLY_SERVICE_MODE --- docs/self-hosting/env/webapp.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/self-hosting/env/webapp.mdx b/docs/self-hosting/env/webapp.mdx index dc7d6a65167..5493f7ba734 100644 --- a/docs/self-hosting/env/webapp.mdx +++ b/docs/self-hosting/env/webapp.mdx @@ -19,6 +19,7 @@ mode: "wide" | `LOGIN_ORIGIN` | Yes | http://localhost:3030 | Login origin URL. Most likely the same as `APP_ORIGIN`. | | `API_ORIGIN` | No | `APP_ORIGIN` | API origin URL. | | `STREAM_ORIGIN` | No | `APP_ORIGIN` | Realtime stream origin URL. | +| `API_ONLY_SERVICE_MODE` | No | — | Serve only the SDK, CLI and worker APIs from this instance. `enforce` redirects `GET` and `HEAD` dashboard requests to the same path on `APP_ORIGIN` and returns 404 for other non-API requests. `report` only logs those requests. Off when unset. | | `ELECTRIC_ORIGIN` | No | http://localhost:3060 | Electric origin URL. | | **Postgres** | | | | | `DATABASE_URL` | Yes | — | PostgreSQL connection string. | From 7ba17db918c0fb5f73775d50487a571189c946af Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Fri, 16 Oct 2026 11:06:15 +0000 Subject: [PATCH 2/2] docs(self-hosting): clarify API_ONLY_SERVICE_MODE 404 behavior Clarify that 404 is returned for non-GET/HEAD methods OR when APP_ORIGIN is not set, not just for 'other non-API requests'. Co-authored-by: Eric Allam <534+ericallam@users.noreply.github.com> --- docs/self-hosting/env/webapp.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/self-hosting/env/webapp.mdx b/docs/self-hosting/env/webapp.mdx index 5493f7ba734..8aba3068784 100644 --- a/docs/self-hosting/env/webapp.mdx +++ b/docs/self-hosting/env/webapp.mdx @@ -19,7 +19,7 @@ mode: "wide" | `LOGIN_ORIGIN` | Yes | http://localhost:3030 | Login origin URL. Most likely the same as `APP_ORIGIN`. | | `API_ORIGIN` | No | `APP_ORIGIN` | API origin URL. | | `STREAM_ORIGIN` | No | `APP_ORIGIN` | Realtime stream origin URL. | -| `API_ONLY_SERVICE_MODE` | No | — | Serve only the SDK, CLI and worker APIs from this instance. `enforce` redirects `GET` and `HEAD` dashboard requests to the same path on `APP_ORIGIN` and returns 404 for other non-API requests. `report` only logs those requests. Off when unset. | +| `API_ONLY_SERVICE_MODE` | No | — | Serve only the SDK, CLI and worker APIs from this instance. `enforce` redirects `GET` and `HEAD` non-API requests to the same path on `APP_ORIGIN` when set; other methods or requests without `APP_ORIGIN` return 404. `report` only logs those requests without blocking them. Off when unset. | | `ELECTRIC_ORIGIN` | No | http://localhost:3060 | Electric origin URL. | | **Postgres** | | | | | `DATABASE_URL` | Yes | — | PostgreSQL connection string. |