disableImagesOptimization
Usage
When set to true
, this option disables the Sharp-based image optimization during the portal build.
Add it to the top level of the siteConfig.yaml
file.
By default, this option is set to false
and image optimization is applied during the portal build.
In portal development mode, image optimization is disabled by default. To enable it in your local development server, you must:
either add the
--with-images-optimization
flag to thestart
command inpackage.json
,or run the server with
yarn start --with-images-optimization
.
Examples
seo:
title: Example Developer Portal
description: Learn how to work with Example APIs
disableImagesOptimization: true