Environment Variables
Required
| Variable | Description |
|---|---|
VARD_API_KEY | Your workspace API key. Found in Settings → API Key. |
Optional
| Variable | Description |
|---|---|
VARD_API_BASE | Override the Vard API base URL. Defaults to https://vard.app. Only needed for self-hosted or local dev setups. |
VARD_SCHEMA_VERSION | Schema version tag. Use for staging/branch environments. Defaults to "default". See Schema Versioning. |
VARD_DEBUG | Set to "true" to enable verbose SDK logging. Useful for debugging content fetching issues. |
Setting variables in different environments
Local development
.env.local
VARD_API_KEY=vard_live_xxxxxxxxxxxxVercel
Add environment variables in your project settings under Settings → Environment Variables. Make sure VARD_API_KEY is available for all environments (Production, Preview, Development).
Other hosts
Consult your hosting provider’s documentation for setting environment variables. The variable must be available at build time (not just runtime) if you’re using static export or ISR.
Security
VARD_API_KEY grants read access to your workspace’s published content. It is safe to include in server-side environment variables but should never be exposed to the browser.
Do not commit .env.local or any file containing your API key to version control.
Last updated on