File tree 2 files changed +6
-3
lines changed
documentation/docs/30-advanced
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -190,9 +190,10 @@ import { transform } from 'unpic/transformers/shopify';
190
190
/**
191
191
* @param {string} url
192
192
* @param {number} width
193
+ * @param {Record<string, any>} options
193
194
*/
194
- export default function loader (url , width ) {
195
- return transform ({ url, width });
195
+ export default function loader (url , width , options ) {
196
+ return transform ({ url, width, ... options });
196
197
}
197
198
` ` `
198
199
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ export default function plugin(
13
13
) : Adapter ;
14
14
15
15
/**
16
- * https://vercel.com/docs/concepts/image-optimization
16
+ * Define how Vercel should optimize your images. Links to the documentation:
17
+ * - https://vercel.com/docs/concepts/image-optimization
18
+ * - https://vercel.com/docs/build-output-api/v3/configuration#images
17
19
*/
18
20
export interface ImageConfig {
19
21
/** Only set this if you're not using SvelteKit's `getImage` from `$app/images` */
You can’t perform that action at this time.
0 commit comments