Derive API path from frontend config URL

This commit is contained in:
2026-08-25 16:53:58 +00:00
parent f79415d2f6
commit f6fb033eb8
3 changed files with 63 additions and 2 deletions
+4 -2
View File
@@ -40,8 +40,10 @@ as `VITE_HCAPTCHA_SITEKEY`. Set the related secret in the backend
not a secret.
Enable the `client-config` external plugin in the backend configuration. The
backend `abbr` value must match the API prefix without its leading slash. For
example, use `"abbr": "api"` with `"prefix": "/api"`.
single-hub build derives the API base URL from `VITE_CONFIG_URL`. The backend
`abbr` can contain the VTC abbreviation and does not have to match the API
prefix. This deployment-specific behavior does not apply when
`VITE_USE_MULTIHUB` is `true`.
The frontend uses the Vite values during the image build. Rebuild the image after
you change `.env`, including the hCaptcha site key.