Copy .env.example to .env.local and fill in the values below. Never commit .env.local.
Required
| Variable | Description | Example |
|---|
AZURE_TENANT_ID | Your Azure AD tenant ID | xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
AZURE_CLIENT_ID | SWA app registration client ID | xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
AZURE_CLIENT_SECRET | SWA app registration client secret | Set in Azure Key Vault in prod |
SWA_DEPLOYMENT_TOKEN | Static Web Apps deployment token | From Azure Portal → SWA → Manage token |
Optional
| Variable | Description | Default |
|---|
ALGOLIA_APP_ID | Algolia DocSearch app ID | — |
ALGOLIA_API_KEY | Algolia search-only API key | — |
ALGOLIA_INDEX_NAME | Algolia index name | charlie-mac-docs |
GitHub Actions secrets
These must be added to your repository under Settings → Secrets and variables → Actions:
| Secret name | Value |
|---|
AZURE_STATIC_WEB_APPS_API_TOKEN | SWA deployment token |
AZURE_TENANT_ID | Azure AD tenant ID |
AAD_CLIENT_ID | App registration client ID |
AAD_CLIENT_SECRET | App registration client secret |