Skip to Content

Treblle Docs

Integrate TreblleSDKsJavaScriptTreblle with Directus

The official Treblle SDK for JavaScript frameworks including Directus. Seamlessly integrate Treblle to manage communication with your dashboard, send errors, and secure sensitive data.

Treblle with Directus

Install

npm install @treblle/directus-extension-treblle

Configuration

Use environment variables for providing Treblle credentials and configuration. Directus already supports .env file, so it enough to just append your variables there.

Treblle Configuration

# Required TREBLLE_API_KEY=your_api_key TREBLLE_SDK_TOKEN=your_SDK_TOKEN # Optional # TREBLLE_SHOW_ERRORS=true # TREBLLE_FIELDS_TO_MASK=["password"]

Note

Directus uses environment variables for configuration. Make sure to restart your Directus instance after adding or modifying environment variables.

Last updated on