docs

Environment variables

Build and CI

VariableExampleRequiredSafe to expose?PurposeFailure behavior
LINGUANA_PROJECT_TOKENlna_...Remote build workNoManifest and paid-work authorizationUpload/translation returns authorization failure
LINGUANA_API_URLhttps://api.example.comRemote compiler and SSRServer configuration onlyAPI origin for builds and server catalog readsRegistration or catalog load fails
LINGUANA_UPLOADtrueNoBuild config, not secretEnables manifest uploadfalse keeps extraction local
LINGUANA_TRANSLATEfalseNoBuild config, not secretDisables translation while retaining uploadOmitted/true may translate when token config enables it
GIT_COMMIT_SHAGit revisionNoYesRecords source revision in the manifestManifest omits source revision

Browser runtime

VariableExampleRequiredSafe to expose?Purpose
VITE_LINGUANA_API_URLhttps://api.example.comRemote browser catalogsYesBrowser-reachable catalog API
VITE_LINGUANA_PUBLISHABLE_KEYpk_...Remote browser catalogsYesRead-only catalog authorization

Only intentionally public values should use the VITE_ prefix. Never create VITE_LINGUANA_PROJECT_TOKEN.

Translation provider

VariableExampleRequiredSafe to expose?Purpose
OPENROUTER_API_KEYProvider secretOpenRouter modeNoPaid translation provider authorization
OPENROUTER_MODELqwen/qwen3.8-flashProvider-dependentServer config onlySelects the provider model
TRANSLATION_PROVIDERopenrouterServer translationServer config onlySelects deterministic or live provider adapter

Documentation deployment

VariableExampleRequiredSafe to expose?Purpose
DOCS_BASE_URLhttps://docs.example.comHosted metadataYesCanonical docs and llms.txt origin
DOCS_PORT3004Deployment-dependentYesDocs service port
VITE_DOCS_URLhttps://docs.example.comLanding integrationYesBrowser-visible docs destination

Server and browser origins

The verified example uses LINGUANA_API_URL on the server and VITE_LINGUANA_API_URL in the browser because container networking and public browser origins may differ. Both must resolve the same API and project catalog scope.

See also

Tokens and environments · CI/CD

Did this page get you to a working result?

On this page

No Headings