0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-27 22:19:04 -05:00
astro/packages/astro/config.mjs
Bjorn Lu 08402ad584
Add limitInputPixels option for sharp image service (#9546)
* Add limitInputPixels option for sharp image service

* Fix types

* Update docs

Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
2024-01-03 13:19:04 +00:00

22 lines
428 B
JavaScript

export { defineConfig, getViteConfig } from './dist/config/index.js';
export function sharpImageService(config = {}) {
return {
entrypoint: 'astro/assets/services/sharp',
config,
};
}
export function squooshImageService() {
return {
entrypoint: 'astro/assets/services/squoosh',
config: {},
};
}
export function passthroughImageService() {
return {
entrypoint: 'astro/assets/services/noop',
config: {},
};
}