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
{{ message }}
Repository navigation
Commit c6d838b
Browse filesBrowse the repository at this point in the historyBrowse files
web: --api-url, and how to try it against a real backend
The extension already supports an API host that is not the account origin (levelcode.cloud.apiUrl); the build can
now bake it in, which is what a local account site with the backend behind a tunnel needs. docs/WEB.md says how to
run the real stack locally and what to look for, and what was and was not run.
|`--account <origin>` (`LEVELCODE_WEB_ACCOUNT`) | The LevelCode Cloud origin: where sign-in happens, and where the gateway is. Baked into `index.html`. |
143
+
|`--api-url <origin>` (`LEVELCODE_WEB_API_URL`) | Only when the API is not on the account origin (production has one host for both): a local account site with the backend behind a tunnel, say. The gateway must be `https`. |
143
144
|`--webview-origin 'https://{{uuid}}.view.example.com'` (`LEVELCODE_WEB_WEBVIEW_ORIGIN`) | Self-host the webview origin. Without it the page uses Code-OSS's CDN at this build's own commit. Needs wildcard DNS and TLS — see below. |
144
145
|`--ext-host-origin 'https://{{uuid}}.ext.example.com'` (`LEVELCODE_WEB_EXTHOST_ORIGIN`) | Run the extension host on an origin of its own. Optional while no third-party code is loaded. |
145
146
|`--static <dir>`| Use a prebuilt client (skips the gulp build). |
@@ -271,16 +272,53 @@ webview from Code-OSS's CDN), and against the development server with the webvie
271
272
host on origins of their own (`--product` with `webviewContentExternalBaseUrlTemplate` and
272
273
`webEndpointUrlTemplate`).
273
274
275
+
### Trying it yourself, against a real backend
276
+
277
+
The repo's checks use a stand-in for the account site. To use the real one, locally:
278
+
279
+
1.**Backend** — the thin.ly branch with the web edition, its usual dev server and https tunnel, plus
280
+
`LEVELCODE_WEB_EDITOR_ORIGINS=http://localhost:8800` and `LEVELCODE_WEB_EDITOR_URL=http://localhost:8800/`.
281
+
(The gateway refuses plain http, so the editor's API host has to be the tunnel.)
282
+
2.**Account site** — the onetime branch: `npm run dev` (it proxies to the backend), at `http://localhost:5173/ai`.
0 commit comments