Derive API path from frontend config URL
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user