diff --git a/admin/config/middlewares.js b/admin/config/middlewares.js index c9dc328..2e6b3e3 100644 --- a/admin/config/middlewares.js +++ b/admin/config/middlewares.js @@ -28,6 +28,12 @@ module.exports = ({ env }) => [ }, }, }, + { + name: "strapi::compression", + config: { + gzip: true, + }, + }, "strapi::cors", "strapi::poweredBy", "strapi::logger", diff --git a/admin/src/api/post/controllers/post.js b/admin/src/api/post/controllers/post.js index 6a8776a..951a5e6 100644 --- a/admin/src/api/post/controllers/post.js +++ b/admin/src/api/post/controllers/post.js @@ -53,6 +53,7 @@ module.exports = createCoreController("api::post.post", ({ strapi }) => ({ image: true, }, }, + image: true, }, });