UNPKG

strapi-ts

Version:

An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MongoDB, MySQL, MariaDB, PostgreSQL, SQLite

20 lines (16 loc) 309 B
'use strict'; /** * Gzip hook */ const compress = require('koa-compress'); module.exports = strapi => { return { /** * Initialize the hook */ initialize() { const { options = {} } = strapi.config.middleware.settings.gzip; strapi.app.use(compress(options)); }, }; };