Learn how to get started with Treblle on Strapi in less than 2 minutes on any new or existing API
npm install treblle
You can ⭐ our Github repo to stay up to date with new updates
const { strapiTreblle } = require("treblle"); module.exports = (strapi) => { return { initialize() { strapi.app.use( strapiTreblle({ apiKey: "_YOUR_API_KEY_", projectId: "_YOUR_PROJECT_ID_", }) ); }, };};
HEADS UP: You need to create an account to get your API KEY and PROJECT ID
module.exports = { load: { before: ["treblle", "othermiddleware"], }, settings: { treblle: { enabled: true, }, },};
You and your team just got these amazing features:
const { strapiTreblle } = require("treblle"); module.exports = (strapi) => { return { initialize() { strapi.app.use( strapiTreblle({ apiKey: "_YOUR_API_KEY_", projectId: "_YOUR_PROJECT_ID_", showErrors: false, // Set true to enable debug mode }) ); }, };};
A boolean that allows you to debug Treblle locally - false by default
const { strapiTreblle } = require("treblle"); module.exports = (strapi) => { return { initialize() { strapi.app.use( strapiTreblle({ apiKey: "_YOUR_API_KEY_", projectId: "_YOUR_PROJECT_ID_", additionalFieldsToMask: ["secret", "private", "user_ssn"] }) ); }, };};
PRO TIP: Data is masked before it even leaves your server