Skip to content

Commit eec30ae

Browse files
committed
tweaks
1 parent 3c2063e commit eec30ae

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

documentation/docs/30-advanced/60-images.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,10 @@ import { transform } from 'unpic/transformers/shopify';
190190
/**
191191
* @param {string} url
192192
* @param {number} width
193+
* @param {Record<string, any>} options
193194
*/
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 });
196197
}
197198
```
198199

packages/adapter-vercel/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export default function plugin(
1313
): Adapter;
1414

1515
/**
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
1719
*/
1820
export interface ImageConfig {
1921
/** Only set this if you're not using SvelteKit's `getImage` from `$app/images` */

0 commit comments

Comments
 (0)